Commit graph

372 commits

Author SHA1 Message Date
Samir Faci
42a37c09d0 Adding support for enum model AllValues
Fixes #368

ChangeLog:
  - Updating test mysql version as it no longer exists.
  - Add a simple validation test
2024-09-18 12:16:58 -04:00
Mike Nelson
52df659318 test 2024-08-28 11:45:44 -06:00
Andrew Harding
b7904cde4e Add HasDefault column metadata 2024-08-13 14:52:54 -06:00
go-jet
adfa331ece Merge remote-tracking branch 'upstream/master' into stmt-cache 2024-07-30 14:11:24 +02:00
go-jet
093f895db2 Fix failing test. 2024-07-03 11:56:59 +02:00
go-jet
39de87671e Additional tests for 'ON CONFLICT DO NOTHING without conflict target does not appear in generated SQL' bug. 2024-03-24 13:02:23 +01:00
go-jet
0918e5503e Add support for prepared statement caching. 2024-03-07 18:01:31 +01:00
go-jet
1b63280b74 Skip UUID_TO_BIN test for MariaDB. 2024-02-27 11:23:34 +01:00
go-jet
16d0e57441 Add UUID_TO_BIN integration test. 2024-02-27 11:11:37 +01:00
go-jet
4094029bfb Skip range test for cockroachdb. 2024-02-27 10:58:21 +01:00
go-jet
43fc77ba99 Range expression update
* Add Int4 and Int8 integer expression to distinguish int4range and int8range types
* Add range functions to range expressions to avoid go template appearing in sql
* Compact range integration tests and add range update tests
2024-02-27 10:48:57 +01:00
Sarkan
893567daca
Range types implemented
plus and minus infinity keyword tests implemented

range table tests added

skip cockroach db added

select test case added for range fields

generator modified to generate correct types

generator tests modified to include sample range table

model and template generators modified to support range fields

returning the T in UPPER and LOWER functions

raw ranges implemented

bounds set as optional

dep modified

dependencies modified and issue fixed

range expression with templates implemented

rangeExpression change to make it more type safe

third parameter of constructor function fixed

literals removed, functions added

tests modified

constructor functions used for creating range expressions

NumRange converted to a constructor function from literal

range_lower and range_upper renamed to lower_bound and upper_bound

range literal removed

PlusInfinity and MinusInfinity implemented

int4 and int8 castings added

issues fixed and tests checked

number, ts, tstz literal and cast implemented

date range literal expression modified and raw function used

parent type converted from RangeExpression to Expression

range type implemented for postgres

range column type, function and literal expression implemented

CONTAINS and OVERLAP operations added for range expressions

range expressions implemented
2024-02-25 01:20:36 +01:00
go-jet
255f4a8eaf Add support for expression in OFFSET clause. 2024-02-13 14:01:13 +01:00
go-jet
dab153a739 Add support for NULLS_FIRST and NULLS_LAST sorting order. 2024-02-10 14:03:31 +01:00
go-jet
e51ddd5506 Add support for FETCH FIRST clause. 2024-02-07 11:07:50 +01:00
go-jet
44e1b7f4d9 Fix circle.ci 2024-02-04 18:59:43 +01:00
go-jet
2eaa75345c [sqlite] Generated columns additional tests. 2024-02-04 18:45:48 +01:00
go-jet
71fb1c7cd1 Add support for sqlite generated columns. 2024-02-04 18:35:26 +01:00
go-jet
23cb5dcfbc Set status code if tests init command fails. 2024-02-01 17:46:11 +01:00
go-jet
7f48e9fb67 Add support for materialized views. 2024-02-01 15:20:49 +01:00
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