Commit graph

81 commits

Author SHA1 Message Date
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
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
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
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
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
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
go-jet
7af9072b8d Allow Raw helper to accept named arguments 2021-05-14 12:15:35 +02:00
go-jet
9385f462df Allow Bytea literal constructor to accept byte array.
Bytea literal constructor now accepts string or []byte a a parameter.
2021-05-12 12:29:22 +02:00
go-jet
f30cbb9e89 Add UUID helper function
UUID creates string literal expression from uuid object.
uuid can be any uuid type with a String method.
2021-05-11 13:20:07 +02:00
go-jet
063b17ca05 Update lossless decimal tests to use new floats test table and DECIMAL literal constructor. 2021-05-09 16:37:16 +02:00
David Racine
08cc316101 fix insert of decimal by changing decimal library 2021-05-03 20:14:13 +02:00
go-jet
059515f52b QRM: Convert lossless decimal types first to string. 2021-05-03 20:14:13 +02:00
go-jet
0f773b26d6 Add LATERAL query support 2021-05-03 19:47:03 +02:00
go-jet
0cba1f6401 Lateral - initial commit. 2021-04-30 14:02:49 +02:00
go-jet
fae8dde639 Add schema rename support
Using SchemaFrom("schemaName") it is possible to set SQL builder table to point to a different schema.
2021-04-30 14:02:49 +02:00
go-jet
92818acd50 Update circle-ci config 2021-02-21 17:12:17 +01: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
fb8607da29 Add support for WITH statements and Common Table Expressions. 2020-05-24 17:55:28 +02:00
go-jet
0d3ec872d6 Add support for automatic query logging. 2020-05-10 11:41:07 +02:00
go-jet
5d742837f1 Use testify/require instead of testify/assert for tests. 2020-05-09 11:00:22 +02:00
go-jet
ebcbadef24 Add new typesafe SET operator for UPDATE statement. 2020-05-09 10:49:09 +02:00
go-jet
a4b4710637 Generate different sql builder files for MySQL and PostgreSQL. 2020-05-03 21:30:57 +02:00
go-jet
980b9b6aac Add ON DUPLICATE KEY UPDATE support (MySQL). 2020-05-03 20:46:21 +02:00
go-jet
926b88ed40 Add reserved words for MySQL. 2020-05-02 22:15:38 +02:00
go-jet
241ea0d6d6 Gen files idempotence test clean up. 2020-04-13 10:18:14 +02:00
go-jet
14e1863456 [postgres] Add support for ON CONFLICT clause 2020-04-12 18:53:57 +02:00
go-jet
4c6caa403e Test sample for dynamic projection and dynamic condition. 2020-02-16 17:35:39 +01:00
go-jet
3019fdbbb2 [bug] Escape reserved words used as identifier. 2020-02-16 10:25:21 +01:00
go-jet
63c1fd6430 [bug] Fix crash on generating enum sql builder files when enum contains numeric values. 2020-02-15 11:20:51 +01:00
go-jet
3efbb0ccd9 Replace gotest.tools with github.com/stretchr/testify. 2020-02-11 10:25:13 +01:00
go-jet
3013dc3647 Add support for PostgreSQL interval column 2020-02-09 18:37:48 +01:00
go-jet
d2fbdb68e6 Add support for conditional constructed projection list. 2019-12-14 19:11:35 +01:00
go-jet
74725e8e11 Clean up. 2019-12-14 18:32:40 +01:00
go-jet
a2fbc4f53a Add postgres interval cast. 2019-12-07 13:52:51 +01:00
go-jet
4a3579e7f9 Postgres interval with date/time expression arithmetic. 2019-12-01 18:34:44 +01:00
go-jet
15acb1c326 QRM returns qrm.ErrNoRows when scanning into struct destination and query result set is empty. 2019-12-01 18:34:44 +01:00
Christian King
9a3f12ea5f Fix issue with using UUID primary keys in complex return types
When using a UUID as a primary key with PostgreSQL the grouping was
defaulting to the row which caused incorrect results to be returned.
2019-10-17 15:13:40 -04:00
go-jet
f9efee77ff QRM returns sql.ErrNoRows when scanning into struct destination and query result set is empty. 2019-10-12 18:45:09 +02:00
go-jet
8c9ae77cd8 Add QRM error if result set is empty when scanning into struct destination. 2019-10-10 16:09:44 +02:00
go-jet
e09c78dec3 New MIN/MAX functions that accepts any expression type. 2019-09-30 14:42:04 +02:00
go-jet
29f43e5fe8 Rename execution package to qrm (Query Result Mapping). 2019-09-27 11:46:31 +02:00
go-jet
799737d602 [Breakable] ColumnList is reverted to be a slice.
ColumnList(...) -> ColumnList{...}
IColumnList is removed.
2019-09-26 12:31:03 +02:00
go-jet
b646dd2c99 Use type aliasing to forward types from internal/jet. 2019-09-26 11:44:46 +02:00