Commit graph

391 commits

Author SHA1 Message Date
k4n4ry
80b4ddd383 feat(qrm): support qrm:"optional" in strict field mapping 2026-01-12 18:24:20 +09:00
k4n4ry
f33c2ee357 feat: add StrictFieldMapping config 2025-12-30 20:53:31 +09:00
go-jet
e2a78428ce CockroachDB test fix. 2025-10-17 14:12:13 +02:00
go-jet
89e93710aa Additional tests. 2025-10-17 13:41:08 +02:00
go-jet
4ee047a675 Add support for additional array types. 2025-10-16 15:09:07 +02:00
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
SanjaiyKumar
caf1088cd4 Added new table test_sample.people under mysql 2025-06-12 04:38:27 +05:30
SanjaiyKumar
59044a0521 Added new table test_sample.people under mysql 2025-06-12 04:32:37 +05:30
SanjaiyKumar
a56447d1fc Excluded GENERATED ALWAYS VIRTUAL columns from mutable columns 2025-06-12 04:22:37 +05:30
Josh Kaplinsky
5c4068dec3
chore: add ShouldSkip to generator template tests 2025-04-18 08:21:02 -04:00
go-jet
a366feb01d
Merge pull request #476 from markvai/fix-custom-type-parameter-gen
Add a field for additional imports when using generic types
2025-04-02 12:36:47 +02:00
markvai
0947de0628 Add the ability to use custom generic types with non std inner types
- fix #442

- Since handling all edge cases for generic type parsing is not trivial, users will specify the fields manually.
- To support more than one import per type, add an additional field for extra imports per type.

- Add examples for defining those types in the current tests that show how to define custom types.
2025-03-31 21:24:54 +03:00
go-jet
acd1aa2078 Uncomment TestNorthwindJoinEverythingJsonSonic since sonic library bug is fixed now. 2025-03-31 20:04:31 +02:00
go-jet
fb7c376ba5
Update Readme.md (#464) 2025-03-16 12:54:32 +01:00
go-jet
4fcc99f48f Add support for assigning one ColumnList to another in INSERT and UPDATE queries. 2025-03-13 13:05:35 +01:00
go-jet
85ea908285 Add support for exporting a ColumnList from a subquery. 2025-03-13 12:45:01 +01:00
go-jet
1db6b12074 Add support for configuring the JSON unmarshal function used when querying SELECT_JSON statements. 2025-03-11 13:33:39 +01:00
go-jet
d86f14e665 Add support for strict scan.
If there are unused columns in query result set Query method panics.
2025-03-11 10:50:06 +01:00
go-jet
ac3275dcb0 Fix test. 2025-03-09 18:35:34 +01:00
go-jet
03af2665ea Merge branch 'master' into select_json
# Conflicts:
#	tests/postgres/alltypes_test.go
2025-03-09 18:32:20 +01:00
go-jet
97f1b46352 Revert go version change and mariadb. 2025-03-09 18:22:31 +01:00
go-jet
950b33191e Remove QueryJson statements method to avoid potential misuse. 2025-03-09 17:46:34 +01:00
go-jet
17646ca99c Encode json values implicitly in the sql queries according the golang json package spec. 2025-03-08 19:01:37 +01:00
go-jet
33c1d9e663 Reintroduce Uint64 literal constructor for postgres dialect. 2025-03-04 19:57:42 +01:00
go-jet
48ff221747 mysql set traditional sql mode 2025-03-01 20:06:54 +01:00
go-jet
dea09d49e8 Test fix. 2025-03-01 19:40:23 +01:00
go-jet
c94216ab0e Add support for blob expressions. 2025-02-28 18:23:15 +01:00
go-jet
6fe2f8605e Fix tests and update circle.ci 2025-02-24 11:30:47 +01:00
go-jet
7b16e432ff Add support for SELECT_JSON statements. 2025-02-21 19:55:01 +01:00
go-jet
7047de44a9
Merge pull request #452 from Hasaber8/feature/448
feature: Add support for LIMIT query in UPDATE for sql/sqlite
2025-02-20 14:59:38 +01:00
Rohan Hasabe
d733f9688e
feature: Add support for LIMIT query in UPDATE for sql
Signed-off-by: Rohan Hasabe <rohanhasabe8@gmail.com>
2025-02-19 16:42:41 -05:00
go-jet
262d866a4a
Merge pull request #451 from sirmackan/master
DefaultColumns() helper on Table
2025-02-17 20:10:07 +01:00
charlie
0b664c6425 fixed default columns for mysql generator 2025-02-16 09:30:54 +01:00
go-jet
de3e912872 Fix cockroachdb test build. 2025-02-14 14:51:35 +01:00
charlie
38ea65434f DefaultColumns() helper on Table 2025-02-06 09:34:22 +01:00
formica2
8646646750 Merge branch 'master' of https://github.com/formica2/jet 2025-01-13 11:13:01 +03:00
formica2
906836f167 Add omitted reserved word on postgresql 2025-01-13 11:12:44 +03: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
d22f3cff3d Fixed flag names 2024-11-26 15:48:36 +06:00
Jamius Siam
cab3cc63bf Replace path package with filepath 2024-11-26 15:40:34 +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
Jamius Siam
abb024a2ae Synced MySQL and MariaDB version from CircleCI config 2024-11-21 18:54:00 +06:00
go-jet
5d2c232529 Add custom set returning function test. 2024-11-03 12:00:39 +01:00
go-jet
2183af42f4 Add PostgreSQL-specific character type constructors: Text, Char, and VarChar. 2024-11-01 12:34:46 +01:00