Commit graph

27 commits

Author SHA1 Message Date
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
1fae6502b3 Add cockroachdb table comments. 2026-02-03 12:43:37 +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
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
c94216ab0e Add support for blob expressions. 2025-02-28 18:23:15 +01:00
go-jet
7b16e432ff Add support for SELECT_JSON statements. 2025-02-21 19:55:01 +01:00
go-jet
5f220569dd Add support for prepared statements caching. 2024-10-29 11:44:38 +01:00
go-jet
4bb9775134 Merge remote-tracking branch 'upstream/master' into stmt-cache2
# Conflicts:
#	tests/postgres/alltypes_test.go
#	tests/postgres/northwind_test.go
#	tests/postgres/sample_test.go
#	tests/postgres/update_test.go
#	tests/sqlite/insert_test.go
#	tests/sqlite/main_test.go
#	tests/sqlite/sample_test.go
#	tests/sqlite/update_test.go
2024-10-19 14:01:55 +02:00
Samir Faci
f7082eda68 Adding gosec and lint, fixing null_type overflow
ChangeLog:
  - Adding gosec linting
  - Adding static type to enum
  - fixing nulltype overflow
  - Trying out gotestsum as an alternative to go-junit-report.xml
2024-10-14 11:06:59 -04:00
go-jet
0918e5503e Add support for prepared statement caching. 2024-03-07 18:01:31 +01:00
go-jet
bc776f947b Add support for CockorachDB. 2022-05-05 13:01:42 +02:00
go-jet
34f84c7170 Rename SetQueryLoggerFunc to SetQueryLogger 2022-01-20 16:51:32 +01:00
go-jet
4955bfc4b5 Add automatic query logger function with additional execution details. 2022-01-12 19:03:50 +01:00
go-jet
72e8d7d584 Add FROM clause support for UPDATE statements 2021-12-08 18:13:58 +01: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
go-jet
0d418890ab Qrm refactor
- Allow custom types Scan method to read values returned by the driver rather then the value from intermediate Null types. Scan to intermidiate Null types removed.
- Better error handling
2021-10-15 17:43:10 +02:00
go-jet
8864667f47 Add the ability to fully customize jet generated files. 2021-07-27 17:39:21 +02:00
go-jet
e95a2385ee Run postgres tests with pgx driver 2021-05-14 14:13:42 +02:00
go-jet
2ada2ff69b Add go mod support. 2020-06-27 18:48:19 +02:00
go-jet
e54e8fcabf Rename LoggableStatement to PrintableStatement. 2020-06-01 18:22:24 +02:00
go-jet
0d3ec872d6 Add support for automatic query logging. 2020-05-10 11:41:07 +02:00
go-jet
14e1863456 [postgres] Add support for ON CONFLICT clause 2020-04-12 18:53:57 +02:00
go-jet
3013dc3647 Add support for PostgreSQL interval column 2020-02-09 18:37:48 +01:00
go-jet
070d82f90f Generator tests for MySQL. 2019-08-08 17:51:20 +02:00
go-jet
23fd973699 Package structure refactor. 2019-08-03 14:10:47 +02:00
go-jet
6bf9c32c07 Tests folder structure reorganisation. 2019-07-30 11:45:10 +02:00
Renamed from tests/main_test.go (Browse further)