go-jet
74f48fc567
Fix mariadb HasDefault column.
2025-03-02 14:45:41 +01:00
go-jet
c94216ab0e
Add support for blob expressions.
2025-02-28 18:23:15 +01:00
charlie
0b664c6425
fixed default columns for mysql generator
2025-02-16 09:30:54 +01:00
charlie
38ea65434f
DefaultColumns() helper on Table
2025-02-06 09:34:22 +01:00
TotallyGamerJet
8975f87830
Remove dbName as argument
2025-01-21 14:06:34 -05:00
TotallyGamerJet
e4ceb421de
generator/*: allow passing DB directly
...
Closes #441
2025-01-17 14:50:59 -05:00
Alexander Trost
60ba05b6fb
feat: add generator skip option for table columns
...
Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2025-01-07 22:30:15 +01:00
Jamius Siam
cab3cc63bf
Replace path package with filepath
2024-11-26 15:40:34 +06:00
johnflynn
9f8732cd95
Updated sql_builder_template to check if column is in a conflicted column name array and renames to {col}_ if it is a conflicting name. Added unit tests.
2024-10-26 22:43:41 -04:00
Volker Lieber
b5f04ffea8
Improved postgres table comment generation
2024-09-26 14:33:23 +02:00
Volker Lieber
64884e4969
Extracted golang comment format function
2024-09-26 14:17:21 +02:00
Volker Lieber
0f21699a1f
Implemented postgres enum comment generation
2024-09-25 14:42:27 +02:00
Volker Lieber
ff82eb5df7
Implemented postgres table and enum comment generation
2024-09-24 20:41:27 +02:00
Volker Lieber
929109622e
Include postgres comments in output
...
#391
2024-09-24 13:23:47 +02:00
Samir Faci
4f80e0d36b
Addressing Code review comments
2024-09-22 09:44:13 -04:00
Samir Faci
42a37c09d0
Adding support for enum model AllValues
...
Fixes #368
ChangeLog:
- Updating test mysql version as it no longer exists.
- Add a simple validation test
2024-09-18 12:16:58 -04:00
Mike Nelson
cf08bcd6f7
spacing
2024-08-28 11:46:35 -06:00
Mike Nelson
882b4311b5
Fix Postgres column array detection
2024-08-28 11:09:16 -06:00
Andrew Harding
b7904cde4e
Add HasDefault column metadata
2024-08-13 14:52:54 -06:00
Sarkan
893567daca
Range types implemented
...
plus and minus infinity keyword tests implemented
range table tests added
skip cockroach db added
select test case added for range fields
generator modified to generate correct types
generator tests modified to include sample range table
model and template generators modified to support range fields
returning the T in UPPER and LOWER functions
raw ranges implemented
bounds set as optional
dep modified
dependencies modified and issue fixed
range expression with templates implemented
rangeExpression change to make it more type safe
third parameter of constructor function fixed
literals removed, functions added
tests modified
constructor functions used for creating range expressions
NumRange converted to a constructor function from literal
range_lower and range_upper renamed to lower_bound and upper_bound
range literal removed
PlusInfinity and MinusInfinity implemented
int4 and int8 castings added
issues fixed and tests checked
number, ts, tstz literal and cast implemented
date range literal expression modified and raw function used
parent type converted from RangeExpression to Expression
range type implemented for postgres
range column type, function and literal expression implemented
CONTAINS and OVERLAP operations added for range expressions
range expressions implemented
2024-02-25 01:20:36 +01:00
Jupp Mueller
bffec36917
Improve performance of mysql generator
...
This change improves performance for generating mysql models
for databases with large number of tables. In my local testing
for a database with about 1000 tables and 140k columns, generation
time was reduced from about 1h to less than one second.
2024-02-17 05:35:56 -08:00
go-jet
6b098b8e41
Replace invalid character from the go identifiers with description string.
2024-02-17 12:46:00 +01:00
go-jet
2eaa75345c
[sqlite] Generated columns additional tests.
2024-02-04 18:45:48 +01:00
go-jet
71fb1c7cd1
Add support for sqlite generated columns.
2024-02-04 18:35:26 +01:00
go-jet
7f48e9fb67
Add support for materialized views.
2024-02-01 15:20:49 +01:00
Yosyp Buchma
dd8d043cb8
moved mysql connection pool config to openConection func
2023-09-20 13:13:50 +03:00
Yosyp Buchma
f472becd89
simplified concurrent querying
2023-09-19 20:56:54 +03:00
Yosyp Buchma
ffabf8b26e
coalesce pk.IsPrimaryKey
2023-09-19 20:56:21 +03:00
Yosyp Buchma
98dfce2ae5
Concurrent GetTableColumnsMetaData for MySQL
2023-09-18 17:48:35 +03:00
Yosyp Buchma
db808f136b
Faster MySQL GetTableColumnsMetaData query
2023-09-18 17:35:11 +03:00
quirell
39f9996b34
Add DefaultAlias option to TableSQLBuilder
2023-08-02 10:03:59 +09:00
go-jet
aace1156ba
[Bug241] Add mysql unicode character comment.
2023-07-23 17:56:07 +02:00
go-jet
bb22b80984
[Bug241] Remove control characters from mysql column comment
2023-07-22 12:01:49 +02:00
go-jet
d7a5adb239
Break utils package into subpackages.
2023-07-21 14:11:31 +02:00
go-jet
06ecd73f67
Improve generator error handling
2023-07-21 13:20:44 +02:00
go-jet
5e34bef288
Add more UseSchema tests.
...
Rename newly generated file to avoid potentional conflict with tables named table or views named view.
2023-04-02 13:58:44 +02:00
go-jet
7b36f31cad
Include mysql column comments into generated types
2023-03-31 14:43:47 +02:00
go-jet
fa69565dbf
Add support for postgres GROUPING SET, ROLLUP and CUBE grouping operators
...
Add support for mysql WITH ROLLUP grouping operator
Add support for GROUPING operator
2023-03-28 13:16:57 +02:00
Cedric L'homme
33e86cd04b
Fix constant in CockroachDB
2023-02-01 12:33:25 -05:00
Cedric L'homme
a4191b4953
fix generated columns in mutable columns for PostgreSQL
...
Fix https://github.com/go-jet/jet/issues/209 .
2023-01-30 10:42:06 -05:00
go-jet
4873e43cc5
Merge pull request #194 from realbucksavage/master
...
Added a global `UseSchema` method to table generation
2022-12-06 11:37:18 +01:00
Jay
9185bb8a76
added order by table_name clause to mysql and postgres query sets
2022-12-05 22:45:45 +05:30
Jay
1bf48d640a
Renamed generated schema func to UseSchema.
2022-12-05 17:26:52 +05:30
Jay
04c1a51ba7
Changed SetSchema to UseSchema
2022-12-04 20:33:55 +05:30
Jay
3f9ae1cabb
Removed unnecessary EnsureDirPath call
2022-12-04 20:22:07 +05:30
Jay
7db99b10bc
Made 'SetSchema' to be generated in a dedicated file for views and tables.
2022-12-02 23:02:44 +05:30
Mukundan Kidambi
b22ab17b38
fix: Updating query for types to the target namespace
2022-12-02 01:32:14 -08:00
Jay
199bb2a20a
corrected 'skip table generation' check
2022-12-01 22:28:28 +05:30
Jay
bda94469ea
Corrected an issue where skipping any table skips SetSchema
2022-12-01 17:46:14 +05:30
Jay
882d5562f3
added a check for skipping generation of table SQL builder code
2022-12-01 15:15:35 +05:30