Commit graph

59 commits

Author SHA1 Message Date
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
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
30284af33e Fix MariaDB build. 2020-05-02 22:26:08 +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
d2fbdb68e6 Add support for conditional constructed projection list. 2019-12-14 19:11:35 +01:00
go-jet
d1970b3a55 MySQL interval with date/time expression arithmetic. 2019-12-01 18:34:44 +01: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
799737d602 [Breakable] ColumnList is reverted to be a slice.
ColumnList(...) -> ColumnList{...}
IColumnList is removed.
2019-09-26 12:31:03 +02:00
go-jet
65e05021bc Add more unit tests. 2019-09-20 19:24:54 +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
df93283516 MariaDB test fix. 2019-09-17 13:47:40 +02:00
go-jet
5ba10d35db Added support for window clause and functions. 2019-09-17 13:34:47 +02:00
go-jet
46a3dc7dfb MySQL linter errors. 2019-08-17 10:43:16 +02:00
go-jet
d5466a91e6 Move init and test results data to separate repo. 2019-08-16 12:43:41 +02:00
go-jet
ba5ee27990 Literal expressions clean up. 2019-08-16 11:19:06 +02:00
go-jet
bcdab0f111 Disable generating enums from the views for MySQL/MariaDB. 2019-08-15 17:10:54 +02:00
go-jet
e0a1eff493 MariaDB tests fix. 2019-08-15 13:54:05 +02:00
go-jet
ec462dce81 CircleCI update for MariaDB. 2019-08-15 12:42:10 +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
486e45db5c SQL Builder panics on invalid SQL.
Query execution panics on invalid destination.
2019-08-13 13:57:26 +02:00
go-jet
14c2c9d745 Expression wrappers test. 2019-08-13 10:33:31 +02:00
go-jet
614c7e9754 Literal and cast clean up. 2019-08-13 10:16:26 +02:00
go-jet
0dd976601e MySQL: Add Where and Limit for Delete statement. 2019-08-11 18:23:02 +02:00
go-jet
a3ae52c43c MySQL lock and unlock tables statement. 2019-08-11 16:55:18 +02:00
go-jet
4fbf576370 MySQL refactor. 2019-08-11 12:13:59 +02:00
go-jet
d00167cbba Remove unnecessary operators. 2019-08-09 10:30:24 +02:00
go-jet
070d82f90f Generator tests for MySQL. 2019-08-08 17:51:20 +02:00
go-jet
7930fb23ba Handle unsupported set operators for MySQL. 2019-08-08 11:44:19 +02:00
go-jet
4c5584aaae Update circle ci for MySQL tests. 2019-08-08 10:51:59 +02:00
go-jet
fbf5fbddbc Timestamp function instead of CAST for literal construct. 2019-08-06 13:58:17 +02:00
go-jet
d235385c2a MySQL UUID test.
RAW rename to Raw.
2019-08-06 13:29:26 +02:00
go-jet
3089bffa1c Explicit cast for MySQL date/time literals. 2019-08-06 12:56:03 +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
3d8e872336 MySQL delete statement tests. 2019-08-02 11:29:38 +02:00
go-jet
7660bdd8b5 MySQL update statement tests. 2019-08-02 11:08:24 +02:00
go-jet
a46e8c1c51 MySQL insert statement tests. 2019-08-01 17:45:11 +02:00