Commit graph

545 commits

Author SHA1 Message Date
go-jet
07251841aa
Update README.md 2020-05-31 11:16:26 +02:00
go-jet
0183117b72 Update quick start example. 2020-05-31 10:42:55 +02:00
go-jet
196989ab68 Update README.md. 2020-05-24 18:20:04 +02:00
go-jet
ac0fd9a6f6 Fix unit tests. 2020-05-24 18:09:16 +02:00
go-jet
f5fae577d7 [MySQL] Add support for WITH statements and Common Table Expressions. 2020-05-24 17:56:35 +02:00
go-jet
8aa894730c [PostgreSQL] Add support for WITH statements and Common Table Expressions. 2020-05-24 17:56:17 +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
9d112c7fe7 Merge remote-tracking branch 'remotes/upstream/idempotency-gen' into develop 2020-04-13 10:01:06 +02:00
go-jet
14e1863456 [postgres] Add support for ON CONFLICT clause 2020-04-12 18:53:57 +02:00
go-jet
e626384d0b Remove timestamp from generated files. 2020-03-03 17:16:42 +01:00
go-jet
eea776a1ac
Merge pull request #32 from go-jet/develop
Interval type support. Sample usage can be seen here.
Datetime arithmetic with interval types.
Dynamic projection list support. Sample usage.
[bug] Escape reserved words used as identifier(issue).
[bug] Fix crash on generating enum SQL Builder files when database enum contains numeric values(issue).
2020-02-17 20:08:39 +01: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
f154701e60 Update circleci config.yml 2020-02-11 10:36:46 +01:00
go-jet
bf66e151ac Replace gotest.tools with github.com/stretchr/testify. 2020-02-11 10:33:00 +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
641c62098c Update comments. 2019-12-21 16:50:16 +01:00
go-jet
6e446ee100 Update Readme.md 2019-12-21 16:01:16 +01:00
go-jet
ca66c36559 Merge remote-tracking branch 'remotes/upstream/master' into develop 2019-12-21 15:59:03 +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
d5ba193551 Merge remote-tracking branch 'remotes/upstream/interval' into develop 2019-12-14 18:30:05 +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
a2fbc4f53a Add postgres interval cast. 2019-12-07 13:52:51 +01:00
go-jet
bdb6befab1
Update README.md 2019-12-06 15:21:55 +01:00
go-jet
4a3579e7f9 Postgres interval with date/time expression arithmetic. 2019-12-01 18:34:44 +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
947d2df47e Additional qrm tests. 2019-12-01 18:34:44 +01:00
go-jet
940fc06d9a
Merge pull request #25 from go-jet/develop
Merge develop to master.
2019-10-18 10:35:58 +02:00
go-jet
64a51dc093 QRM returns qrm.ErrNoRows when scanning into struct destination and query result set is empty. 2019-10-18 10:15:08 +02:00
go-jet
f8daa1d76e Some linter errors. 2019-10-18 10:09:56 +02:00
go-jet
53a76f31b4 Additional qrm tests. 2019-10-18 09:56:38 +02:00
go-jet
2891cc71be
Merge pull request #24 from cking-vonix/feature/pgsql-uuid-pk-fix-develop
Fix issue with using UUID primary keys in complex return types
2019-10-18 09:17:09 +02: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
4fb1f52c85
Merge pull request #22 from go-jet/err-no-rows
QRM returns sql.ErrNoRows when scanning into struct destination and query result set is empty.
2019-10-12 18:49:08 +02: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
3544977d7f QRM code refactor. 2019-10-11 10:15:36 +02:00