Commit graph

20 commits

Author SHA1 Message Date
2053415c76
Make it possible to add fully custom columns to table definition
This adds a few different fields to the column SQL builder that were
once either calculated or hard-coded:
 * Import - so you can import the column from anywhere
 * Type - fully, rather than partially, modifiable to allow any naming
   convention
 * TypeFactory - fully, rather than partially defined

I also alphabetized some things because the OCD compels me.
2026-05-06 16:26:38 +00:00
SwitchUpCB
77dc0bcb57 remove unused
https://github.com/go-jet/jet/pull/458#discussion_r1986128416
2025-03-11 15:39:22 +00:00
Alexander Trost
60ba05b6fb
feat: add generator skip option for table columns
Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2025-01-07 22:30:15 +01:00
Jamius Siam
cab3cc63bf Replace path package with filepath 2024-11-26 15:40:34 +06:00
Volker Lieber
64884e4969 Extracted golang comment format function 2024-09-26 14:17:21 +02:00
go-jet
d7a5adb239 Break utils package into subpackages. 2023-07-21 14:11:31 +02:00
go-jet
06ecd73f67 Improve generator error handling 2023-07-21 13:20:44 +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
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
3f9ae1cabb Removed unnecessary EnsureDirPath call 2022-12-04 20:22:07 +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
199bb2a20a corrected 'skip table generation' check 2022-12-01 22:28:28 +05:30
Jay
bda94469ea Corrected an issue where skipping any table skips SetSchema 2022-12-01 17:46:14 +05:30
Jay
882d5562f3 added a check for skipping generation of table SQL builder code 2022-12-01 15:15:35 +05:30
Jay
a792fe6e0a Renamed generated SetSchema to Set<SchemaName>Schema 2022-12-01 12:48:28 +05:30
Jay
471499ea00 Added a global method to table generation (#79) 2022-12-01 11:54:14 +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
51cad22809 Add jet generator support for SQLite 2021-10-21 13:21:01 +02:00
go-jet
8864667f47 Add the ability to fully customize jet generated files. 2021-07-27 17:39:21 +02:00