Commit graph

415 commits

Author SHA1 Message Date
34e5dcbb17
Switch to hosting on source.gleipnir.technology
All checks were successful
/ test (push) Successful in 3s
2026-05-14 16:26:47 +00:00
30cc7321c5
Fix references to docker images for some databases
I just assumed some paths but didn't check them previously.
2026-05-14 16:06:42 +00:00
9f722d9c05
Don't 'install' jet during tests
Build the output and reference it directly.

Also, use real Makefile syntax for a dependency on a built file to have
proper dependency tracking for updating files
2026-05-14 15:58:39 +00:00
edc9fd8384
Switch from docker to podman
Far less invasive, needs fewer permissions, etc.
2026-05-14 15:46:06 +00:00
4474319e73
Bulk replace project references in go code 2026-05-09 01:43:40 +00:00
go-jet
159cd95599 If SELECT_JSON returns more than one row of NULL values, SELECT_JSON should return an error. 2026-05-04 12:41:19 +02:00
go-jet
a1d7684fc1 Make sure mysql select json object keys are escaped. 2026-05-04 12:34:29 +02:00
go-jet
d4d57b6ff5 Test fix. 2026-05-03 13:19:32 +02:00
go-jet
e9db63ab20 Test fix. 2026-05-03 12:17:06 +02:00
go-jet
88fe61e7e2 Update dependencies. 2026-05-03 12:10:07 +02:00
go-jet
7f12e4a2b7 Fix circle.ci 2026-04-04 20:05:11 +02:00
go-jet
8728a9152f Separate integration tests into new go module. 2026-04-04 19:27:20 +02:00
Felipe Pinheiro
ea8a35d497
Remove pgproto3/v2 dep by upgrading pgx/v4 to v5
pgx/v4/stdlib was only used in test infrastructure, but its transitive
dependency on jackc/pgproto3/v2 exposed the build to GO-2026-4518 (DoS
via negative field length panic in DataRow.Decode).

Replaces the pgconn.ParseConfig call via GenerateDSN with url.Parse for
DSN validation, and SELECT current_database() for retrieving the
database name, removing the last non-test dependency on the pgx/v4.

Updates TestUInt64Overflow in tests/postgres to match pgx/v5 error
format: v5 renamed Int to Int64 across pgtype to match database/sql
conventions, so the overflow error now says "int64" instead of "Int8".

Bumps minimum Go version to 1.24 (required by pgx/v5).
2026-03-23 14:00:29 -03:00
Danny Gueta
89dda7068d Remove commented-out code in JSON test cases for clarity and maintainability. 2026-02-13 09:52:49 +02:00
Danny Gueta
d42fc975f9 Refactor JSON handling in AllTypesJsonRawMessageResult struct by removing unused fields and updating test cases to validate JSON and Jsonb data retrieval. 2026-02-13 09:50:55 +02:00
arthurvaverko
ab3a265a5c Add support for json.RawMessage type and update dependencies. 2026-02-09 06:06:50 +02:00
go-jet
1fae6502b3 Add cockroachdb table comments. 2026-02-03 12:43:37 +01:00
go-jet
0e495a279e Simplify literal expressions. 2026-02-02 13:21:35 +01:00
go-jet
4995a90483 Simplify construction of new expressions.
Fixes: IS_NOT_NULL() does not always add enough parentheses to the compiled SQL #500
2026-02-02 13:18:19 +01:00
k4n4ry
323c3a0597 Merge remote-tracking branch 'upstream/master' into feat/strict-field-mapping 2026-01-30 22:44:12 +09:00
go-jet
7f215544d5 Test fix. 2026-01-22 12:13:39 +01:00
go-jet
6cc4f0bc58 Fix for incorrect subquery column type. 2026-01-21 13:24:28 +01:00
go-jet
36450552e6 Add test for rows strict scan. 2026-01-21 12:02:09 +01:00
go-jet
7d4aa4cdab Fix for SELECT_JSON_ARR generates incorrect order by, limit and offset clauses for mariadb. 2026-01-16 14:11:22 +01:00
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