go-jet
753d3bac9a
Remove methods from Table interface that affects receiver object
...
Modifying SQL builder receiver object can produce unwanted side effects.
2021-03-21 17:19:54 +01:00
DevDevious
5b4a1ebd63
Added unsigned integer literals.
2021-03-21 17:19:54 +01:00
go-jet
2fb93a0bdb
Update circle-ci config
2021-03-21 17:19:54 +01:00
go-jet
4c821d16b0
Merge pull request #47 from joonash/schema-rename-support
...
Schema rename support
2020-11-17 19:31:24 +01:00
go-jet
667d534a65
Merge pull request #55 from campsite/develop
...
Add support for custom functions.
2020-10-02 19:24:43 +02: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
go-jet
29119d71d9
Merge pull request #51 from gkdr/export-order-by
...
Export OrderByClause type through alias.
2020-09-06 16:22:55 +02:00
Richard
1c435f5c7f
export OrderByClause type through alias
...
enables e.g. creating a collection of clauses beforehand and dynamically adding to it.
this resolves #48 .
2020-09-03 13:25:23 +02: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
4b0263112f
Merge pull request #45 from joonash/mysql-not-operator
...
MySQL NOT operator support
2020-07-30 17:08:28 +02:00
Joonas Haapsaari
9a3c29b504
MySQL NOT operator support
...
- Suppot for NOT operator in MySQL, similarly as in PostgreSQL.
- Add test to verify NOT EXISTS query in MySQL
2020-07-29 16:37:55 +03:00
go-jet
fdde2ab9b4
Merge pull request #42 from go-jet/develop
...
Add support for go.mod (v2.4.0)
2020-06-28 11:27:41 +02:00
go-jet
5881b5d947
Update README.md.
2020-06-28 11:21:08 +02:00
go-jet
2ada2ff69b
Add go mod support.
2020-06-27 18:48:19 +02:00
go-jet
6437e041ee
Merge pull request #41 from anisjonischkeit/patch-1
...
fix documentation for DESC()
2020-06-09 10:00:29 +02:00
Anis Jonischkeit
40eb2b80c4
fix documentation
2020-06-08 21:22:22 +10:00
go-jet
fdeef56d53
Remove go.mod support for now, because it requires breaking changes.
2020-06-03 08:36:03 +02:00
go-jet
b2c96f4419
Update README.md
2020-06-03 08:02:53 +02:00
go-jet
c3903948c8
Merge pull request #40 from go-jet/develop
...
Merge develop to master for 2.3.0 release
2020-06-03 07:28:40 +02:00
go-jet
63aa31925a
Disable unsupported MariaDB tests.
2020-06-01 20:35:07 +02: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
cd3325054b
Remove unused template function.
2020-06-01 17:21:52 +02:00
go-jet
b8d1f97cf5
Update generator version.
2020-05-31 20:15:17 +02:00
go-jet
aefa4a2ff6
Add go mod support.
2020-05-31 12:27:11 +02:00
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