Commit graph

882 commits

Author SHA1 Message Date
go-jet
1146afe343 Update circle-ci
Add new test database.
2021-04-30 14:02:49 +02:00
go-jet
616f27306e Update quick-start example with updated auto generated files 2021-04-30 14:02:49 +02:00
go-jet
fae8dde639 Add schema rename support
Using SchemaFrom("schemaName") it is possible to set SQL builder table to point to a different schema.
2021-04-30 14:02:49 +02:00
go-jet
38776e35ab Remove methods from Table interface that affects receiver object
Modifying SQL builder receiver object can produce unwanted side effects.
2021-04-30 14:02:49 +02:00
Joonas Haapsaari
1e511654fd 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
2021-04-30 14:02:49 +02:00
go-jet
9773657c3d Merge remote-tracking branch 'remotes/origin/schema-rename-support2' into develop 2021-03-21 17:27:44 +01:00
go-jet
f8cfaaace1 Update circle-ci
Add new test database.
2021-03-21 17:23:42 +01:00
go-jet
d63e56f574 Update quick-start example with updated auto generated files 2021-03-21 17:19:54 +01:00
go-jet
b375733dfa Add schema rename support
Using SchemaFrom("schemaName") it is possible to set SQL builder table to point to a different schema.
2021-03-21 17:19:54 +01:00
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
7bafa1ffef
Merge pull request #73 from DevDevious/unsigned-integers
Unsigned integer literal support
2021-02-23 14:09:47 +01:00
DevDevious
6b06bc6a37 Added unsigned integer literals. 2021-02-22 13:58:28 -05:00
go-jet
92818acd50 Update circle-ci config 2021-02-21 17:12:17 +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