Commit graph

26 commits

Author SHA1 Message Date
go-jet
7b36f31cad Include mysql column comments into generated types 2023-03-31 14:43:47 +02:00
Jay
1bf48d640a Renamed generated schema func to UseSchema. 2022-12-05 17:26:52 +05:30
Jay
04c1a51ba7 Changed SetSchema to UseSchema 2022-12-04 20:33:55 +05:30
Jay
7db99b10bc Made 'SetSchema' to be generated in a dedicated file for views and tables. 2022-12-02 23:02:44 +05:30
Jay
a792fe6e0a Renamed generated SetSchema to Set<SchemaName>Schema 2022-12-01 12:48:28 +05:30
go-jet
4e1ff65023 [MySQL] Add NEW alias for the rows to be inserted. 2022-08-23 12:23:46 +02:00
go-jet
3ff9241eea
Merge pull request #138 from nkonin/fix/dsn-ignore-tables
fix -ignore-tables, -ignore-enums and -ignore-views when -dsn is present
2022-04-14 10:52:30 +02:00
Nikita Konin
971e2df442 fix -ignore-tables, -ignore-enums and -ignore-views when -dsn is present 2022-04-13 20:47:56 +03:00
fourdim
3aca063d57 Update generator tests 2022-03-18 11:18:22 +08:00
go-jet
04c14f29bf Add option for generator to ignore tables, views or enums. 2022-01-15 17:43:25 +01:00
go-jet
972fc1d9bf Add support for running integration tests with dockerized test databases. 2021-12-17 16:59:43 +01:00
vetcher
5b7c34e333 Connection via DSN 2021-09-02 11:29:55 +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
go-jet
2fb93a0bdb Update circle-ci config 2021-03-21 17:19:54 +01:00
go-jet
2ada2ff69b Add go mod support. 2020-06-27 18:48:19 +02:00
go-jet
5d742837f1 Use testify/require instead of testify/assert for tests. 2020-05-09 11:00:22 +02:00
go-jet
a4b4710637 Generate different sql builder files for MySQL and PostgreSQL. 2020-05-03 21:30:57 +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
3efbb0ccd9 Replace gotest.tools with github.com/stretchr/testify. 2020-02-11 10:25:13 +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
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
bcdab0f111 Disable generating enums from the views for MySQL/MariaDB. 2019-08-15 17:10:54 +02:00
go-jet
0dd976601e MySQL: Add Where and Limit for Delete statement. 2019-08-11 18:23:02 +02:00
go-jet
070d82f90f Generator tests for MySQL. 2019-08-08 17:51:20 +02:00