Commit graph

149 commits

Author SHA1 Message Date
Yosyp Buchma
fb66fbd31c fix ProjectionList{}.As method (issue #364) 2024-07-26 14:10:20 +02:00
Mathieu Kooiman
3ec0e2cabd refactor: NewCustomExpression -> CustomExpression 2024-07-13 17:04:33 +02:00
Mathieu Kooiman
f48970d124 refactor: expose NewCustomExpression for dialects to use 2024-07-12 14:09:17 +02:00
Karl Blomster
1d310624d8
Export BinaryOperator function 2024-03-26 15:49:17 +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
6b098b8e41 Replace invalid character from the go identifiers with description string. 2024-02-17 12:46:00 +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
71fb1c7cd1 Add support for sqlite generated columns. 2024-02-04 18:35:26 +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
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
0a7e0b5392 Expose internal RawBool type 2023-04-17 12:46:11 +02:00
go-jet
a428981a2d Expose internal jet.Rows type 2023-04-17 12:01:01 +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
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
go-jet
f772f90336 [MySQL] Optimizer hints 2022-09-29 13:33:00 +02:00
go-jet
a2ea1892e5 Go fmt. 2022-08-23 12:38:16 +02:00
go-jet
4e1ff65023 [MySQL] Add NEW alias for the rows to be inserted. 2022-08-23 12:23:46 +02:00
Nikita Konin
92254c35df add missing SET method to ColumnTimez interface
it has been already implemented, just missing from interface
2022-08-18 13:23:51 +03: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
84dbda5948 Improve doc. 2022-05-13 13:46:41 +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
9f91fd705a Global AND and OR functions for better indentation of a complex condition in the Go code and in the generated SQL. 2022-02-11 13:09:49 +01:00
go-jet
dc557390b0 Test fix. 2022-02-09 13:49:37 +01:00
go-jet
c10244aeab Improve Rows scan performance
ScanContext reused between rows.Scan calls.
Simplified assign value logic.
Use complex destination for Rows test.
2022-02-04 13:03:31 +01:00
go-jet
34f84c7170 Rename SetQueryLoggerFunc to SetQueryLogger 2022-01-20 16:51:32 +01:00
go-jet
605f1c8e3d [Postgres] Add order set aggregate functions support. 2022-01-18 19:18:00 +01:00
go-jet
4955bfc4b5 Add automatic query logger function with additional execution details. 2022-01-12 19:03:50 +01:00
go-jet
7377e078cd Skip complex expression parenthesis wrap for function parameters. 2022-01-10 16:57:57 +01:00
go-jet
a506a96d6a Add DISTINCT operator support 2022-01-10 16:43:17 +01:00
go-jet
6fe9c26d30 [Postgres] Add support for DISTINCT ON clause. 2022-01-06 18:11:26 +01:00
go-jet
5cbf4aac86 Add ability to change alias of all projections in the ProjectionList.
Add ability to exclude list of columns from ProjectionList.
2022-01-05 18:00:20 +01:00
go-jet
392ba63bc5 Add helper method to set ProjectionList alias. 2022-01-04 18:08:06 +01:00
go-jet
038a32b032 Add WITH RECURSIVE statement support 2022-01-04 18:08:06 +01:00
go-jet
001d64f1dc Add BETWEEN operator support. 2022-01-04 17:58:10 +01:00
go-jet
47545ce571 Add WITH RECURSIVE support. 2021-12-26 11:34:57 +01:00
go-jet
72e8d7d584 Add FROM clause support for UPDATE statements 2021-12-08 18:13:58 +01:00
go-jet
e8f4c2b31b Add SQLBuilder support for SQLite databases. 2021-10-21 13:40:26 +02:00
go-jet
d197956271 Avoid unnecessary double wrapping of SELECT statement when used as single function parameter. 2021-10-21 13:40:26 +02:00
go-jet
22b2901336 Move RETURNING clause to internal/jet so it can be reused for sqlite implementation. 2021-10-21 13:40:26 +02:00
go-jet
0d418890ab Qrm refactor
- Allow custom types Scan method to read values returned by the driver rather then the value from intermediate Null types. Scan to intermidiate Null types removed.
- Better error handling
2021-10-15 17:43:10 +02:00
go-jet
555ec293fb Add ability to exclude columns from ColumnList 2021-10-04 11:49:13 +02:00
go-jet
8864667f47 Add the ability to fully customize jet generated files. 2021-07-27 17:39:21 +02:00
go-jet
87373f1425 Test fix 2021-05-17 14:53:53 +02:00