Commit graph

402 commits

Author SHA1 Message Date
go-jet
b6d57075e8 Additional tests for row lock UPDATE OF use case. 2024-02-01 14:43:12 +01:00
Matthew Dowdell
f16f0b5e5d Add support for OF in row lock clauses
This adds support for statements such as `SELECT ... FOR UPDATE OF table NOWAIT` where `OF table`
could not be specified previously. Fixes #285.
2023-11-30 07:52:54 +00:00
quirell
39f9996b34 Add DefaultAlias option to TableSQLBuilder 2023-08-02 10:03:59 +09:00
go-jet
bea828d64d Add additional generator template tests:
- TestRenameEnumValueName
 - TestGeneratorTemplate_Model_SqlBuilder_RenameStructFieldNames test.
2023-07-23 17:58:33 +02: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
dbcf614140 Additional generator tests. 2023-07-21 17:22:20 +02:00
go-jet
6e597a3179 Additional generator tests. 2023-07-21 17:18:02 +02:00
go-jet
12509eaf44 Additional generator tests. 2023-07-21 17:10:39 +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
e31e30b7f7 Bug225: Add more MultipleNestedAliasedSlices test 2023-07-20 12:09:38 +02:00
go-jet
75fbc1baaf Bug225: Incorrect scan for duplicate aliased subtype slice. 2023-07-19 14:24:25 +02:00
go-jet
a428981a2d Expose internal jet.Rows type 2023-04-17 12:01:01 +02:00
go-jet
73d7e4823c Update test. 2023-04-14 12:13:09 +02:00
go-jet
14bd3b6c3b Fix for bug226.
Add struct fieldName to groupKey to have a unique groupKey for each field object.
2023-04-13 10:46:46 +02:00
go-jet
c7962aba71 Add bug226 test. 2023-04-10 20:14:55 +02:00
go-jet
b520a61b6e Test clean up.
Upgrade dependencies.
2023-04-06 11:26:09 +02:00
go-jet
ebfaa62e93 Update tests for the same enum in two different schema. 2023-04-04 12:36:22 +02:00
go-jet
9cf1205acf Update tests for the same enum in two different schema. 2023-04-04 12:35:50 +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
a9aa25416a Test data update. 2023-03-31 14:50:01 +02:00
go-jet
7b36f31cad Include mysql column comments into generated types 2023-03-31 14:43:47 +02:00
go-jet
fa69565dbf Add support for postgres GROUPING SET, ROLLUP and CUBE grouping operators
Add support for mysql WITH ROLLUP grouping operator
Add support for GROUPING operator
2023-03-28 13:16:57 +02:00
Cedric L'homme
2f10233420 Update testdata 2023-02-01 12:33:51 -05:00
Cedric L'homme
5d84197a87 Update submodule jet-test-data 2023-01-31 13:07:36 -05:00
Cedric L'homme
a1088ead17 Move back to test_sample 2023-01-30 15:01:08 -05:00
Cedric L'homme
a4191b4953 fix generated columns in mutable columns for PostgreSQL
Fix https://github.com/go-jet/jet/issues/209.
2023-01-30 10:42:06 -05:00
go-jet
8be2f8b9c3 Update mysql driver to v1.7.0 2023-01-17 18:50:09 +01:00
go-jet
48b4725375 Update go-sqlite3 to version v1.14.16 2023-01-17 18:41:04 +01:00
Marco Ronchese
31cddca786 add additional test 2022-12-17 17:21:46 +01:00
Marco Ronchese
68dbbabb99 fixing test 2022-12-17 17:19:34 +01:00
Marco Ronchese
78ed3fdb13 adding test and cleaning up 2022-12-16 23:17:26 +01:00
Jay
9185bb8a76 added order by table_name clause to mysql and postgres query sets 2022-12-05 22:45:45 +05:30
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
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
go-jet
59f9df9b7e [postgres] Add Json literal test. 2022-09-29 14:31:08 +02:00
go-jet
f772f90336 [MySQL] Optimizer hints 2022-09-29 13:33:00 +02:00
go-jet
4e1ff65023 [MySQL] Add NEW alias for the rows to be inserted. 2022-08-23 12:23:46 +02:00
go-jet
f93636eab0 Add missing sqlite conditional functions. 2022-08-17 13:03:03 +02:00
go-jet
4b720d6a73 Add multi-tenant table WithPrefix, WithSuffix tests. 2022-05-17 11:10:20 +02:00
go-jet
01f409bab1 Add multi-tenant table WithPrefix, WithSuffix tests. 2022-05-17 11:09:29 +02:00
go-jet
6706f4b228 [Bug] DebugSQL panics with libraries that do not implemente Stringer interface. 2022-05-14 11:17:39 +02:00
go-jet
3b0285cc4b [Bug] Statement Query and Exec methods can not be used with sql.Conn 2022-05-13 14:04:11 +02:00
go-jet
2101088d0e Add support for EXTRACT time/date function. 2022-05-06 11:54:44 +02:00
go-jet
bc776f947b Add support for CockorachDB. 2022-05-05 13:01:42 +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