Commit graph

26 commits

Author SHA1 Message Date
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
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
27c67aee3d Fix false positive security scan issues. 2026-02-16 13:04:00 +01:00
TotallyGamerJet
8975f87830 Remove dbName as argument 2025-01-21 14:06:34 -05:00
TotallyGamerJet
e4ceb421de generator/*: allow passing DB directly
Closes #441
2025-01-17 14:50:59 -05:00
Jamius Siam
cab3cc63bf Replace path package with filepath 2024-11-26 15:40:34 +06:00
go-jet
d7a5adb239 Break utils package into subpackages. 2023-07-21 14:11:31 +02:00
go-jet
06ecd73f67 Improve generator error handling 2023-07-21 13:20:44 +02:00
go-jet
fa69565dbf Add support for postgres GROUPING SET, ROLLUP and CUBE grouping operators
Add support for mysql WITH ROLLUP grouping operator
Add support for GROUPING operator
2023-03-28 13:16:57 +02:00
Stephen Osunrinde
db6ad04024 Removed dsn from generator 2022-10-25 10:53:35 +01:00
S T E P H E N
9bc090b7a3
Potential security flaw
I am using go-jet as a go library for an application that uses dynamic database credentials and noticed this potential security risk that exposes the whole database credentials (though it is timed, it is still a risk)
2022-10-24 22:43:10 +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
8adfe45e38 Reuse generator logic between two generator functions. 2021-10-04 10:46:46 +02:00
go-jet
f30662e0b8 Build fix. 2021-09-24 11:53:03 +02:00
Mukundan Kidambi
a85eafd58c
fix: Fixing up postgres connection strings (#96) 2021-09-24 11:49:41 +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
2ada2ff69b Add go mod support. 2020-06-27 18:48:19 +02:00
go-jet
50bda95da2 Simplify error handling in generator. 2019-09-20 18:20:26 +02:00
go-jet
b88519bfd4 [Feature] Add support for database views.
[Feature] Add support to manually set primary keys for destination structure fields.
2019-09-20 12:53:52 +02:00
go-jet
a657b76bef The rest of linter errors. 2019-08-17 18:32:01 +02:00
go-jet
0ab25e4464 Update CircleCI to support MySQL 2019-08-08 17:13:20 +02:00
go-jet
23fd973699 Package structure refactor. 2019-08-03 14:10:47 +02:00
go-jet
5dda5e1e11 Generic dialect support. (MySQL and Postgres) 2019-07-28 14:57:02 +02:00
go-jet
043a0dc4c0 MySQL generator support. 2019-07-27 10:40:30 +02:00