Commit graph

907 commits

Author SHA1 Message Date
41fe97d336
Fix the imports I botched really badly
Apparently I don't understand how go modules work.
2026-05-14 20:56:20 +00:00
44d981fbfc
Update references to jet v2 in tests
I'm guessing people don't run these anymore...
2026-05-14 16:30:22 +00:00
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
dd4abacc8a
Run ls after checkout
All checks were successful
/ test (push) Successful in 3s
2026-05-14 15:39:53 +00:00
866b69a911
Check out the code as part of the runner
All checks were successful
/ test (push) Successful in 10s
2026-05-14 15:39:05 +00:00
160e04f307
Add initial test Forgejo workflow
All checks were successful
/ test (push) Successful in 0s
2026-05-14 15:37:37 +00:00
5b65a3d4ef
Add initial flake.nix and default.nix
For NixOS development
2026-05-14 15:37:37 +00:00
4474319e73
Bulk replace project references in go code 2026-05-09 01:43:40 +00:00
814ebddfa2
Add support for PostGIS Geometry columns
This is primarily an experiment. At this point I'm getting back the
Geometry as a GeoJSON blob, which is pretty massive progress, but I'm
still not able to manipulate the data directly the way I'd like.
2026-05-06 20:36:10 +00:00
2053415c76
Make it possible to add fully custom columns to table definition
This adds a few different fields to the column SQL builder that were
once either calculated or hard-coded:
 * Import - so you can import the column from anywhere
 * Type - fully, rather than partially, modifiable to allow any naming
   convention
 * TypeFactory - fully, rather than partially defined

I also alphabetized some things because the OCD compels me.
2026-05-06 16:26:38 +00:00
go-jet
b30d7c524d
Merge pull request #588 from go-jet/bug-fix
Forward context inside QueryContext method....
2026-05-04 12:57:44 +02: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
1c2a595750 Forward context inside QueryContext method. 2026-05-04 11:54:11 +02:00
go-jet
86fdabd9cc
Merge pull request #586 from go-jet/tests-go-mod
Isolate tests into separate go mod
2026-05-03 13:40:24 +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
36e3319d90 Merge code coverages. 2026-05-03 11:44:42 +02:00
go-jet
7f12e4a2b7 Fix circle.ci 2026-04-04 20:05:11 +02:00
go-jet
fc1ba7fdeb Fix circle.ci 2026-04-04 19:52:51 +02:00
go-jet
e7ddd9e33f Fix statement caching test command. 2026-04-04 19:40:56 +02:00
go-jet
a0558ce060
Merge pull request #574 from fesiqueira/update-readme
Update README.md Go version to 1.24+
2026-04-04 19:28:06 +02:00
go-jet
8728a9152f Separate integration tests into new go module. 2026-04-04 19:27:20 +02:00
Felipe Pinheiro
c0264d2fd3
Update README.md Go version to 1.24+
This is to align with current compatibility requirements after recent
jackc/pgx/v5 update.
2026-03-31 11:35:17 -03:00
go-jet
8e45282748
Merge pull request #553 from go-jet/dependabot/go_modules/github.com/stretchr/testify-1.11.1
Bump github.com/stretchr/testify from 1.10.0 to 1.11.1
2026-03-30 20:20:06 +02:00
go-jet
fa60aa9ba6
Merge pull request #568 from fesiqueira/remove-jackc-pgproto3
Remove pgproto3/v2 dep by upgrading pgx/v4 to v5
2026-03-27 13:10:32 +01:00
Felipe Pinheiro
c4ce03d70c
Update circle.ci to go 1.24. 2026-03-23 14:06:55 -03: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
go-jet
6c2abe9dd1
Merge pull request #564 from go-jet/sec-fix
Fix false positive security scan issues.
2026-02-16 13:09:59 +01:00
go-jet
27c67aee3d Fix false positive security scan issues. 2026-02-16 13:04:00 +01:00
go-jet
6ed68f910e
Merge pull request #561 from venn-city/fix-json-raw-message-scan
Add support for `json.RawMessage` type and update dependencies.
2026-02-16 12:54:32 +01: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
7b56e1a621
Merge pull request #560 from go-jet/cdb-cmt-test
Add cockroachdb table comments test.
2026-02-03 12:56:56 +01:00
go-jet
1fae6502b3 Add cockroachdb table comments. 2026-02-03 12:43:37 +01:00
go-jet
a8b1782130
Merge pull request #558 from fernandesenzo/fix/cockroachdb-comments
fix: remove random comments on CockroachDB tables generation
2026-02-03 12:23:59 +01:00
go-jet
4ae762a3d4
Merge pull request #559 from go-jet/cleanup
Cleanup: Simplify expression construction
2026-02-02 14:08:04 +01:00
go-jet
7d31b406a9 Remove unused FunctionSerializeOverride parameter from dialect. 2026-02-02 13:55:22 +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
Enzo Fernandes
5bc39dae41 fix: remove random comments on CockroachDB tables generation 2026-02-01 18:16:50 -03:00
go-jet
95224a793f
Merge pull request #557 from go-jet/first_row_strict
Check strict scan only on first row.
2026-01-31 14:42:06 +01:00
go-jet
ac8d24fa5b Check strict scan only on first row. 2026-01-31 14:25:26 +01:00
go-jet
eaaa328580
Merge pull request #542 from k4n4ry/feat/strict-field-mapping
feat: add StrictFieldMapping config
2026-01-31 14:04:09 +01:00
k4n4ry
323c3a0597 Merge remote-tracking branch 'upstream/master' into feat/strict-field-mapping 2026-01-30 22:44:12 +09:00