Commit graph

447 commits

Author SHA1 Message Date
go-jet
01305a138f Add automatic type cast for integer literals
In parameterized statements integer literals, like Int(num), are replaced with a placeholders. For some expressions,
postgres interpreter will not have enough information to deduce the type. If this is the case postgres returns an error.
Int8, Int16, Int32.... functions now will add automatic type cast over a placeholder, so type deduction is always possible.
2021-12-26 17:29:43 +01:00
go-jet
47545ce571 Add WITH RECURSIVE support. 2021-12-26 11:34:57 +01:00
go-jet
02123005c1 [QRM] Prevent recursive scan if destination contains circular dependency. 2021-12-26 11:34:57 +01:00
go-jet
7f54036b1a Remove unused code. 2021-12-24 18:08:05 +01:00
go-jet
c0710bed29 Update go doc. 2021-12-24 17:13:13 +01:00
go-jet
b92af7ca6e Update circle.ci 2021-12-19 18:25:55 +01:00
go-jet
972fc1d9bf Add support for running integration tests with dockerized test databases. 2021-12-17 16:59:43 +01:00
go-jet
4d5abc85c6
Merge pull request #112 from kblomster/generator-mysql-5.7-support
generator: support MySQL 5.7
2021-12-15 11:48:59 +01:00
Karl Blomster
4d404d8853
generator: support MySQL 5.7
MySQL 5.7 does not support CTE's. Refactor the table column metadata
query to avoid the CTE.
2021-12-14 18:22:58 +01:00
go-jet
60ffd004c5 Add USING clause support for DELETE statements 2021-12-08 18:14:57 +01:00
go-jet
72e8d7d584 Add FROM clause support for UPDATE statements 2021-12-08 18:13:58 +01:00
go-jet
97c34fbb54 Update Readme. 2021-10-25 16:24:51 +02:00
go-jet
776f308273 Update Readme. 2021-10-22 18:21:42 +02: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
f2e4b8551c Update circle.ci 2021-10-21 18:15:54 +02:00
go-jet
84e120cbab Test fix. 2021-10-21 17:35:29 +02:00
go-jet
e8f4c2b31b Add SQLBuilder support for SQLite databases. 2021-10-21 13:40:26 +02: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
22b2901336 Move RETURNING clause to internal/jet so it can be reused for sqlite implementation. 2021-10-21 13:40:26 +02:00
go-jet
6080ae134f QRM skip unnecessary new slice element copying. 2021-10-21 13:40:26 +02:00
go-jet
51cad22809 Add jet generator support for SQLite 2021-10-21 13:21:01 +02:00
go-jet
3f7efb33eb Build fix. 2021-10-16 10:46:28 +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
555ec293fb Add ability to exclude columns from ColumnList 2021-10-04 11:49:13 +02:00
go-jet
3015b79926 Add test for - Special characters are not working in postgres password(for generator)
https://github.com/go-jet/jet/issues/95
2021-10-04 10:48:07 +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
mlaflamm
8d43829bc5 Revert scanContext.rowElemValuePtr func signature 2021-09-15 19:30:28 +02:00
mlaflamm
fee77b695a Fix scan nil primitive type slice 2021-09-15 19:30:28 +02:00
vetcher
b31464e491 Review fixes 2021-09-02 11:29:55 +02:00
vetcher
5b7c34e333 Connection via DSN 2021-09-02 11:29:55 +02:00
go-jet
b0838999d6 Fix circle.ci. 2021-08-30 12:38:27 +02:00
go-jet
f92754e0e6 Merge branch 'develop' of https://github.com/go-jet/jet into develop 2021-08-30 12:24:58 +02:00
go-jet
419da1d1b0 Use PgPort from dbconfig.go. 2021-08-30 12:19:21 +02:00
go-jet
f696dca42c
Merge pull request #86 from mlaflamm/export-group-by
Export GroupByClause type through alias
2021-07-30 10:48:34 +02:00
mlaflamm
c47d79ffd7 export GroupByClause type through alias 2021-07-29 09:51:55 -04:00
go-jet
0017773d27 Merge remote-tracking branch 'upstream/master' into develop 2021-07-27 17:53:04 +02:00
go-jet
8864667f47 Add the ability to fully customize jet generated files. 2021-07-27 17:39:21 +02:00
go-jet
f0bf2c36b3
Merge pull request #78 from go-jet/develop
Merge develop to master for 2.5.0 release
2021-05-21 17:20:27 +02:00
go-jet
caa81930dc Reset FROM clause list before new values are set. 2021-05-21 16:25:26 +02:00
go-jet
17e5e34111 Allow NUMERIC value scan into any number type 2021-05-21 16:09:29 +02:00
go-jet
cecdab1c67 Test fix. 2021-05-17 15:13:54 +02:00
go-jet
3e9eda28c1 Update README.md 2021-05-17 14:54:26 +02:00
go-jet
87373f1425 Test fix 2021-05-17 14:53:53 +02:00
go-jet
8a283bea25 Update jet generator version 2021-05-16 19:19:27 +02:00
go-jet
38541522e6 Fix linter errors 2021-05-16 19:10:43 +02:00
go-jet
3021a6a0fd Add support to retrieve Rows from statement
Rows statement method executes statements over db connection/transaction and returns Rows.
2021-05-16 18:46:50 +02:00
go-jet
a5b7769589 Add RawStatement support
RawStatement method creates new sql statements from raw query and optional map of named arguments.
2021-05-15 11:54:41 +02:00
go-jet
e95a2385ee Run postgres tests with pgx driver 2021-05-14 14:13:42 +02:00