Commit graph

577 commits

Author SHA1 Message Date
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
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
256be8a406 [BUG] Update statement reserved word not escaped
Update statement, using MODEL struct, now generates escaped SQL identifier if column name is reserved word.
2021-05-09 17:17:14 +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
go-jet
92d02fef78 Add DECIMAL constructor for Float literal.
DECIMAL constructor is used to pass a decimal number to the SQL query without precision loss.
2021-05-09 16:25:54 +02:00
David Racine
08cc316101 fix insert of decimal by changing decimal library 2021-05-03 20:14:13 +02:00
David Racine
1404bf5e16 fix mixup imports 2021-05-03 20:14:13 +02:00
David Racine
f1ac6561b9 fix mixup imports 2021-05-03 20:14:13 +02:00
David Racine
a5f5091903 keep support destination type float64 for decimal/numeric 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
5ab430c367 Merge remote-tracking branch 'remotes/origin/add-lateral' into develop
# Conflicts:
#	tests/mysql/select_test.go
#	tests/postgres/select_test.go
2021-05-03 20:00:34 +02:00
go-jet
0f773b26d6 Add LATERAL query support 2021-05-03 19:47:03 +02:00
go-jet
4ef0113f6b Add implicit cross join support 2021-05-03 18:48:15 +02:00
go-jet
0cba1f6401 Lateral - initial commit. 2021-04-30 14:02:49 +02:00
go-jet
1146afe343 Update circle-ci
Add new test database.
2021-04-30 14:02:49 +02:00
go-jet
616f27306e Update quick-start example with updated auto generated files 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
38776e35ab Remove methods from Table interface that affects receiver object
Modifying SQL builder receiver object can produce unwanted side effects.
2021-04-30 14:02:49 +02:00
Joonas Haapsaari
1e511654fd Schema rename support
- Support for renaming table schemas
 * Table support for renaming schema
 * Empty schema name is left out (using default schema for the
   database connection)
 * Generated code support for obtaining a version of the table with
   renamed schema, similarly as the `AS` function works
 * Unit tests for setting and clearing the schema name
2021-04-30 14:02:49 +02:00