go-jet
4fcc99f48f
Add support for assigning one ColumnList to another in INSERT and UPDATE queries.
2025-03-13 13:05:35 +01:00
go-jet
85ea908285
Add support for exporting a ColumnList from a subquery.
2025-03-13 12:45:01 +01:00
go-jet
1db6b12074
Add support for configuring the JSON unmarshal function used when querying SELECT_JSON statements.
2025-03-11 13:33:39 +01:00
go-jet
d86f14e665
Add support for strict scan.
...
If there are unused columns in query result set Query method panics.
2025-03-11 10:50:06 +01:00
go-jet
ac3275dcb0
Fix test.
2025-03-09 18:35:34 +01:00
go-jet
03af2665ea
Merge branch 'master' into select_json
...
# Conflicts:
# tests/postgres/alltypes_test.go
2025-03-09 18:32:20 +01:00
go-jet
950b33191e
Remove QueryJson statements method to avoid potential misuse.
2025-03-09 17:46:34 +01:00
go-jet
17646ca99c
Encode json values implicitly in the sql queries according the golang json package spec.
2025-03-08 19:01:37 +01:00
go-jet
33c1d9e663
Reintroduce Uint64 literal constructor for postgres dialect.
2025-03-04 19:57:42 +01:00
go-jet
c94216ab0e
Add support for blob expressions.
2025-02-28 18:23:15 +01:00
go-jet
6fe2f8605e
Fix tests and update circle.ci
2025-02-24 11:30:47 +01:00
go-jet
7b16e432ff
Add support for SELECT_JSON statements.
2025-02-21 19:55:01 +01:00
go-jet
262d866a4a
Merge pull request #451 from sirmackan/master
...
DefaultColumns() helper on Table
2025-02-17 20:10:07 +01:00
go-jet
de3e912872
Fix cockroachdb test build.
2025-02-14 14:51:35 +01:00
charlie
38ea65434f
DefaultColumns() helper on Table
2025-02-06 09:34:22 +01:00
formica2
8646646750
Merge branch 'master' of https://github.com/formica2/jet
2025-01-13 11:13:01 +03:00
formica2
906836f167
Add omitted reserved word on postgresql
2025-01-13 11:12:44 +03: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
d22f3cff3d
Fixed flag names
2024-11-26 15:48:36 +06:00
Jamius Siam
cab3cc63bf
Replace path package with filepath
2024-11-26 15:40:34 +06:00
Jamius Siam
b08dd48c71
Updated tests for package customization CLI args
2024-11-23 00:32:44 +06:00
Jamius Siam
47fd02fb8d
Added test for the CLI flags for Model, Table, View and Enum
2024-11-22 21:15:09 +06:00
go-jet
5d2c232529
Add custom set returning function test.
2024-11-03 12:00:39 +01:00
go-jet
2183af42f4
Add PostgreSQL-specific character type constructors: Text, Char, and VarChar.
2024-11-01 12:34:46 +01:00
go-jet
5f220569dd
Add support for prepared statements caching.
2024-10-29 11:44:38 +01:00
go-jet
4bb9775134
Merge remote-tracking branch 'upstream/master' into stmt-cache2
...
# Conflicts:
# tests/postgres/alltypes_test.go
# tests/postgres/northwind_test.go
# tests/postgres/sample_test.go
# tests/postgres/update_test.go
# tests/sqlite/insert_test.go
# tests/sqlite/main_test.go
# tests/sqlite/sample_test.go
# tests/sqlite/update_test.go
2024-10-19 14:01:55 +02:00
go-jet
8d112f7db8
Add support for VALUES statement.
2024-10-17 14:17:22 +02:00
go-jet
3fcbbec427
Add support for Row expression.
2024-10-17 14:17:22 +02:00
Samir Faci
f7082eda68
Adding gosec and lint, fixing null_type overflow
...
ChangeLog:
- Adding gosec linting
- Adding static type to enum
- fixing nulltype overflow
- Trying out gotestsum as an alternative to go-junit-report.xml
2024-10-14 11:06:59 -04:00
Samir Faci
c0a0b450aa
Changing from Table Driven tests to subtests
2024-10-09 14:53:47 -04:00
Samir Faci
600e0a7ce7
Addressing code review comments and adding a query validation
2024-10-09 08:30:33 -04:00
Samir Faci
288ebdc373
Improved support for intervals in postgres
...
Fixes #393
2024-10-08 08:30:33 -04:00
go-jet
31a6b9582a
Merge pull request #404 from safaci2000/feature/testTools
...
Replacing several test util function with a generic version
2024-10-07 20:07:55 +02:00
Samir Faci
c2703558d7
Moving PtrOf to package internal/ptr
2024-10-06 09:04:10 -04:00
Samir Faci
99be328e9d
Replacing several test util function with a generic version
...
ChangeLog:
- updated several test utils with a generic PtrOf
- updated references using iotils (Deprecated) with os equivalent import.
2024-10-05 13:13:55 -04:00
Volker Lieber
30e02dc9c0
Implemented postgres generator comment tests
...
https://github.com/go-jet/jet-test-data/pull/6
2024-09-25 15:45:06 +02:00
Samir Faci
d3ce39f275
Reverting circleci docker-compose
2024-09-22 16:12:43 -04:00
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
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