go-jet
4c821d16b0
Merge pull request #47 from joonash/schema-rename-support
...
Schema rename support
2020-11-17 19:31:24 +01:00
tolfino
bc104d7dbb
Add support for custom functions.
...
This allows expressions like jet.Func("FOO", String("test")) to be
emitted as FOO($1).
2020-10-02 08:53:26 -07:00
Joonas Haapsaari
b7bcb3527e
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
2020-08-18 15:56:04 +03:00
go-jet
2ada2ff69b
Add go mod support.
2020-06-27 18:48:19 +02:00
Anis Jonischkeit
40eb2b80c4
fix documentation
2020-06-08 21:22:22 +10:00
go-jet
d19fdea86d
Additional MySQL WITH statement tests.
2020-06-01 20:30:09 +02:00
go-jet
e54e8fcabf
Rename LoggableStatement to PrintableStatement.
2020-06-01 18:22:24 +02:00
go-jet
ac0fd9a6f6
Fix unit tests.
2020-05-24 18:09:16 +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
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
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
74725e8e11
Clean up.
2019-12-14 18:32:40 +01:00
go-jet
2487c48428
Fix linter errors.
2019-12-08 11:07:49 +01:00
go-jet
57aa62f483
Simplified creation of operator expression.
2019-12-07 18:54:30 +01:00
go-jet
d1970b3a55
MySQL 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
go-jet
0b00a6b12c
Some linter errors.
2019-12-01 18:34:44 +01: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
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
92de03d4b3
GroupKeyInfo improvements for parent specified primary keys.
2019-09-27 11:34:12 +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
cbf98298bd
Fix linter errors.
2019-09-20 20:04:17 +02:00
go-jet
942911e7ae
Fix linter errors.
2019-09-20 19:57:15 +02:00
go-jet
1cc463477d
Fix linter errors.
2019-09-20 19:54:56 +02:00
go-jet
65e05021bc
Add more unit tests.
2019-09-20 19:24:54 +02:00
go-jet
74b94f0d8b
Add more unit tests.
2019-09-20 19:13:30 +02:00
go-jet
50bda95da2
Simplify error handling in generator.
2019-09-20 18:20:26 +02:00
go-jet
f5287628aa
Improve code coverage.
2019-09-20 13:55:07 +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
5ba10d35db
Added support for window clause and functions.
2019-09-17 13:34:47 +02:00
go-jet
a657b76bef
The rest of linter errors.
2019-08-17 18:32:01 +02:00
go-jet
ab6d85f886
Postgres linter errors.
2019-08-17 14:49:35 +02:00
go-jet
46a3dc7dfb
MySQL linter errors.
2019-08-17 10:43:16 +02:00
go-jet
ec21a2ad35
Should quote identifier improvement.
2019-08-16 14:03:24 +02:00
go-jet
ba5ee27990
Literal expressions clean up.
2019-08-16 11:19:06 +02:00
go-jet
e0a1eff493
MariaDB tests fix.
2019-08-15 13:54:05 +02:00
go-jet
0dbdbb9220
MariaDB tests fix.
2019-08-15 11:59:17 +02:00
go-jet
bf3ec27f68
REGEXP_LIKE refactor.
2019-08-15 11:10:02 +02:00
go-jet
4ab9d73a8b
Functions go doc.
2019-08-14 10:11:43 +02:00
go-jet
486e45db5c
SQL Builder panics on invalid SQL.
...
Query execution panics on invalid destination.
2019-08-13 13:57:26 +02:00