Commit graph

80 commits

Author SHA1 Message Date
Karl Blomster
4d404d8853
generator: support MySQL 5.7
MySQL 5.7 does not support CTE's. Refactor the table column metadata
query to avoid the CTE.
2021-12-14 18:22:58 +01:00
go-jet
a50d89ff9d Add test for - Special characters are not working in postgres password(for generator)
https://github.com/go-jet/jet/issues/95
2021-10-22 18:08:05 +02:00
go-jet
51cad22809 Add jet generator support for SQLite 2021-10-21 13:21:01 +02:00
go-jet
0d418890ab Qrm refactor
- Allow custom types Scan method to read values returned by the driver rather then the value from intermediate Null types. Scan to intermidiate Null types removed.
- Better error handling
2021-10-15 17:43:10 +02:00
go-jet
8adfe45e38 Reuse generator logic between two generator functions. 2021-10-04 10:46:46 +02:00
go-jet
f30662e0b8 Build fix. 2021-09-24 11:53:03 +02:00
Mukundan Kidambi
a85eafd58c
fix: Fixing up postgres connection strings (#96) 2021-09-24 11:49:41 +02:00
vetcher
b31464e491 Review fixes 2021-09-02 11:29:55 +02:00
vetcher
5b7c34e333 Connection via DSN 2021-09-02 11:29:55 +02:00
go-jet
8864667f47 Add the ability to fully customize jet generated files. 2021-07-27 17:39:21 +02: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
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
2ada2ff69b Add go mod support. 2020-06-27 18:48:19 +02:00
go-jet
cd3325054b Remove unused template function. 2020-06-01 17:21:52 +02:00
go-jet
a4b4710637 Generate different sql builder files for MySQL and PostgreSQL. 2020-05-03 21:30:57 +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
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
3013dc3647 Add support for PostgreSQL interval column 2020-02-09 18:37:48 +01: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
50bda95da2 Simplify error handling in generator. 2019-09-20 18:20:26 +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
bcdab0f111 Disable generating enums from the views for MySQL/MariaDB. 2019-08-15 17:10:54 +02:00
go-jet
91dc633b45 Generator clean up. 2019-08-14 12:50:31 +02:00
go-jet
13c671fa3f Execution additional tests. 2019-08-13 17:20:35 +02:00
go-jet
9a34dc9fd7 Handle todos. 2019-08-12 12:27:33 +02:00
go-jet
070d82f90f Generator tests for MySQL. 2019-08-08 17:51:20 +02:00
go-jet
0ab25e4464 Update CircleCI to support MySQL 2019-08-08 17:13:20 +02:00
go-jet
4c5584aaae Update circle ci for MySQL tests. 2019-08-08 10:51:59 +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
bffa102849 MySQL execution and scan support. 2019-07-29 18:08:53 +02:00
go-jet
5dda5e1e11 Generic dialect support. (MySQL and Postgres) 2019-07-28 14:57:02 +02:00
go-jet
043a0dc4c0 MySQL generator support. 2019-07-27 10:40:30 +02:00
go-jet
31ec532b6d Additional generator tests. 2019-07-19 12:39:10 +02:00
go-jet
556578cec9 Additional documentation for sub packages. 2019-07-18 18:42:03 +02:00
go-jet
b817f57035 Pre-release clean up. 2019-07-17 13:22:14 +02:00
go-jet
0a417a14d6 Add northwind db. 2019-07-17 11:03:16 +02:00
go-jet
57added50a Update godoc. 2019-07-16 12:17:27 +02:00
go-jet
518ff49a77 Update README.md. 2019-07-14 14:30:39 +02:00
go-jet
63f2d04651 Rename of types and errors. 2019-07-08 13:00:44 +02:00
go-jet
18bbf1b5fb Types rename. 2019-07-08 10:48:03 +02:00
go-jet
55e8c3bbb1 Add Dependencies info to README.md. 2019-07-04 17:54:15 +02:00
go-jet
950663dadb Improve database to golang name mapping. 2019-07-03 16:27:14 +02:00
go-jet
d6c59deb1f Add MutablColumns list into autogen sql builder table. 2019-06-30 11:53:35 +02:00
go-jet
3516d2861c Add wiki Generator page. 2019-06-27 14:31:57 +02:00
go-jet
a44bd85d32 Generator cleanup. 2019-06-23 18:55:57 +02:00