Commit graph

37 commits

Author SHA1 Message Date
go-jet
5cbf4aac86 Add ability to change alias of all projections in the ProjectionList.
Add ability to exclude list of columns from ProjectionList.
2022-01-05 18:00:20 +01:00
go-jet
e8f4c2b31b Add SQLBuilder support for SQLite databases. 2021-10-21 13:40:26 +02:00
go-jet
8864667f47 Add the ability to fully customize jet generated files. 2021-07-27 17:39:21 +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
7af9072b8d Allow Raw helper to accept named arguments 2021-05-14 12:15:35 +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
4ef0113f6b Add implicit cross join support 2021-05-03 18:48:15 +02:00
go-jet
2ada2ff69b Add go mod support. 2020-06-27 18:48:19 +02:00
go-jet
d19fdea86d Additional MySQL WITH statement tests. 2020-06-01 20:30:09 +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
3efbb0ccd9 Replace gotest.tools with github.com/stretchr/testify. 2020-02-11 10:25:13 +01:00
go-jet
2487c48428 Fix linter errors. 2019-12-08 11:07:49 +01:00
go-jet
d1970b3a55 MySQL interval with date/time expression arithmetic. 2019-12-01 18:34:44 +01:00
go-jet
29f43e5fe8 Rename execution package to qrm (Query Result Mapping). 2019-09-27 11:46:31 +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
a657b76bef The rest of linter errors. 2019-08-17 18:32:01 +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
go-jet
614c7e9754 Literal and cast clean up. 2019-08-13 10:16:26 +02:00
go-jet
d3d00910aa Test utils reuse. 2019-08-12 12:11:16 +02:00
go-jet
4c5584aaae Update circle ci for MySQL tests. 2019-08-08 10:51:59 +02:00
go-jet
6ee2f45548 [New] Constructor for time types, that accepts time.Time. (TimeT, TimezT, DateT, ...) 2019-08-06 11:41:45 +02:00
go-jet
647ef21aaf Dialect refactor improvements and clean up. 2019-08-06 10:29:04 +02:00
go-jet
23fd973699 Package structure refactor. 2019-08-03 14:10:47 +02:00
go-jet
7660bdd8b5 MySQL update statement tests. 2019-08-02 11:08:24 +02:00
go-jet
6af43f0c46 MySQL select statement tests. 2019-08-01 16:56:54 +02:00
go-jet
53dbcd9bfc MySQL cast expressions. 2019-07-31 18:43:54 +02:00
go-jet
fcce8d4262 MySQL int expressions. 2019-07-31 13:02:30 +02:00
go-jet
163ecf4c42 MySQL float expressions. 2019-07-30 15:04:36 +02:00
go-jet
d0533f73fb MySQL bool expressions. 2019-07-30 11:18:12 +02:00
go-jet
bffa102849 MySQL execution and scan support. 2019-07-29 18:08:53 +02:00