Commit graph

41 commits

Author SHA1 Message Date
41fe97d336
Fix the imports I botched really badly
Apparently I don't understand how go modules work.
2026-05-14 20:56:20 +00:00
44d981fbfc
Update references to jet v2 in tests
I'm guessing people don't run these anymore...
2026-05-14 16:30:22 +00:00
34e5dcbb17
Switch to hosting on source.gleipnir.technology
All checks were successful
/ test (push) Successful in 3s
2026-05-14 16:26:47 +00:00
4474319e73
Bulk replace project references in go code 2026-05-09 01:43:40 +00:00
SanjaiyKumar
85fdfb01b3 Renamed new flags name '-tables', '-views', and '-enums'. 2025-06-24 14:09:30 +05:30
SanjaiyKumar
c35892320d Added unit test cases for the new flags '-allow-tables', '-allow-views', and '-allow-enums'. 2025-06-18 16:02:36 +05:30
SanjaiyKumar
a56447d1fc Excluded GENERATED ALWAYS VIRTUAL columns from mutable columns 2025-06-12 04:22:37 +05:30
go-jet
dea09d49e8 Test fix. 2025-03-01 19:40:23 +01:00
go-jet
c94216ab0e Add support for blob expressions. 2025-02-28 18:23:15 +01:00
charlie
0b664c6425 fixed default columns for mysql generator 2025-02-16 09:30:54 +01:00
charlie
38ea65434f DefaultColumns() helper on Table 2025-02-06 09:34:22 +01:00
Andrew Harding
b7904cde4e Add HasDefault column metadata 2024-08-13 14:52:54 -06:00
go-jet
aace1156ba [Bug241] Add mysql unicode character comment. 2023-07-23 17:56:07 +02:00
go-jet
bb22b80984 [Bug241] Remove control characters from mysql column comment 2023-07-22 12:01:49 +02:00
go-jet
5e34bef288 Add more UseSchema tests.
Rename newly generated file to avoid potentional conflict with tables named table or views named view.
2023-04-02 13:58:44 +02:00
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