go-jet
45d4ced9b0
Merge branch 'arjen-ag5/master' into pg_arrays
...
# Conflicts:
# generator/template/model_template.go
# generator/template/sql_builder_template.go
# internal/jet/expression.go
# postgres/cast.go
# postgres/columns.go
# postgres/expressions.go
# postgres/insert_statement_test.go
# postgres/literal.go
# tests/postgres/alltypes_test.go
# tests/postgres/generator_template_test.go
# tests/postgres/scan_test.go
# tests/postgres/select_test.go
2025-10-16 13:44:18 +02:00
Arjen Brouwer
d3ada5361e
Add support for postgres arrays
2025-10-16 13:32:18 +02:00
Carson Krueger
8f99948004
add more tests
2025-08-04 22:20:34 -06:00
Carson Krueger
9cc22af2dd
add tests for model-json-tag
2025-08-03 22:19:14 -06:00
SanjaiyKumar
85fdfb01b3
Renamed new flags name '-tables', '-views', and '-enums'.
2025-06-24 14:09:30 +05:30
SanjaiyKumar
c35892320d
Added unit test cases for the new flags '-allow-tables', '-allow-views', and '-allow-enums'.
2025-06-18 16:02:36 +05:30
go-jet
c94216ab0e
Add support for blob expressions.
2025-02-28 18:23:15 +01:00
charlie
38ea65434f
DefaultColumns() helper on Table
2025-02-06 09:34:22 +01:00
Jamius Siam
d22f3cff3d
Fixed flag names
2024-11-26 15:48:36 +06:00
Jamius Siam
b08dd48c71
Updated tests for package customization CLI args
2024-11-23 00:32:44 +06:00
Jamius Siam
47fd02fb8d
Added test for the CLI flags for Model, Table, View and Enum
2024-11-22 21:15:09 +06:00
Volker Lieber
30e02dc9c0
Implemented postgres generator comment tests
...
https://github.com/go-jet/jet-test-data/pull/6
2024-09-25 15:45:06 +02:00
Mike Nelson
52df659318
test
2024-08-28 11:45:44 -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
go-jet
7f48e9fb67
Add support for materialized views.
2024-02-01 15:20:49 +01:00
go-jet
dbcf614140
Additional generator tests.
2023-07-21 17:22:20 +02:00
go-jet
6e597a3179
Additional generator tests.
2023-07-21 17:18:02 +02:00
go-jet
12509eaf44
Additional generator tests.
2023-07-21 17:10:39 +02:00
go-jet
75fbc1baaf
Bug225: Incorrect scan for duplicate aliased subtype slice.
2023-07-19 14:24:25 +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
Cedric L'homme
a1088ead17
Move back to test_sample
2023-01-30 15:01:08 -05: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
7db99b10bc
Made 'SetSchema' to be generated in a dedicated file for views and tables.
2022-12-02 23:02:44 +05:30
Jay
882d5562f3
added a check for skipping generation of table SQL builder code
2022-12-01 15:15:35 +05:30
go-jet
bc776f947b
Add support for CockorachDB.
2022-05-05 13:01:42 +02:00
go-jet
3ff9241eea
Merge pull request #138 from nkonin/fix/dsn-ignore-tables
...
fix -ignore-tables, -ignore-enums and -ignore-views when -dsn is present
2022-04-14 10:52:30 +02:00
Nikita Konin
971e2df442
fix -ignore-tables, -ignore-enums and -ignore-views when -dsn is present
2022-04-13 20:47:56 +03:00
fourdim
3aca063d57
Update generator tests
2022-03-18 11:18:22 +08:00
go-jet
04c14f29bf
Add option for generator to ignore tables, views or enums.
2022-01-15 17:43:25 +01:00
go-jet
b92af7ca6e
Update circle.ci
2021-12-19 18:25:55 +01:00
go-jet
a50d89ff9d
Add test for - Special characters are not working in postgres password(for generator)
...
https://github.com/go-jet/jet/issues/95
2021-10-22 18:08:05 +02:00
go-jet
d197956271
Avoid unnecessary double wrapping of SELECT statement when used as single function parameter.
2021-10-21 13:40:26 +02:00
vetcher
5b7c34e333
Connection via DSN
2021-09-02 11:29:55 +02:00
go-jet
8864667f47
Add the ability to fully customize jet generated files.
2021-07-27 17:39:21 +02:00
go-jet
063b17ca05
Update lossless decimal tests to use new floats test table and DECIMAL literal constructor.
2021-05-09 16:37:16 +02:00
go-jet
b375733dfa
Add schema rename support
...
Using SchemaFrom("schemaName") it is possible to set SQL builder table to point to a different schema.
2021-03-21 17:19:54 +01:00
go-jet
2fb93a0bdb
Update circle-ci config
2021-03-21 17:19:54 +01:00
go-jet
2ada2ff69b
Add go mod support.
2020-06-27 18:48:19 +02:00
go-jet
5d742837f1
Use testify/require instead of testify/assert for tests.
2020-05-09 11:00:22 +02:00
go-jet
a4b4710637
Generate different sql builder files for MySQL and PostgreSQL.
2020-05-03 21:30:57 +02:00
go-jet
241ea0d6d6
Gen files idempotence test clean up.
2020-04-13 10:18:14 +02:00
go-jet
14e1863456
[postgres] Add support for ON CONFLICT clause
2020-04-12 18:53:57 +02:00
go-jet
3019fdbbb2
[bug] Escape reserved words used as identifier.
2020-02-16 10:25:21 +01:00
go-jet
63c1fd6430
[bug] Fix crash on generating enum sql builder files when enum contains numeric values.
2020-02-15 11:20:51 +01:00
go-jet
3efbb0ccd9
Replace gotest.tools with github.com/stretchr/testify.
2020-02-11 10:25:13 +01:00
go-jet
3013dc3647
Add support for PostgreSQL interval column
2020-02-09 18:37:48 +01:00