go-jet
0e495a279e
Simplify literal expressions.
2026-02-02 13:21:35 +01:00
go-jet
4995a90483
Simplify construction of new expressions.
...
Fixes: IS_NOT_NULL() does not always add enough parentheses to the compiled SQL #500
2026-02-02 13:18:19 +01:00
go-jet
7d4aa4cdab
Fix for SELECT_JSON_ARR generates incorrect order by, limit and offset clauses for mariadb.
2026-01-16 14:11:22 +01:00
Christian Groschupp
b2b1a59a45
feat: add returning to mysql
2025-11-13 16:57:58 +01:00
go-jet
cfc264221b
Rename the parent pointer to root, as the pointer often references expression multiple layers above the current expression.
2025-03-09 19:06:17 +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
c94216ab0e
Add support for blob expressions.
2025-02-28 18:23:15 +01:00
go-jet
7b16e432ff
Add support for SELECT_JSON statements.
2025-02-21 19:55:01 +01:00
Rohan Hasabe
d733f9688e
feature: Add support for LIMIT query in UPDATE for sql
...
Signed-off-by: Rohan Hasabe <rohanhasabe8@gmail.com>
2025-02-19 16:42:41 -05:00
go-jet
4f0832b0e7
Remove unused cast interface.
2024-11-01 12:30:37 +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
go-jet
adfa331ece
Merge remote-tracking branch 'upstream/master' into stmt-cache
2024-07-30 14:11:24 +02:00
Mathieu Kooiman
6cabfcdc1a
feat: expose CustomExpression+Token in mysql/postgres/sqlite
2024-07-13 17:10:26 +02:00
Karl Blomster
1d310624d8
Export BinaryOperator function
2024-03-26 15:49:17 +01:00
go-jet
0918e5503e
Add support for prepared statement caching.
2024-03-07 18:01:31 +01:00
Jay
33ec120437
replaced the UUIDToBin functions with a singular UUID_TO_BIN
2024-02-22 17:23:14 +05:30
Jay
09fe45b09c
mysql: added a helper to compare UUID strings with uuid_to_bin
2024-02-20 23:56:11 +05:30
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
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
d7a5adb239
Break utils package into subpackages.
2023-07-21 14:11:31 +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
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
Karl Blomster
792f89a857
mysql: export some conditional functions
...
COALESCE, NULLIF, GREATEST and LEAST already existed
and were available in the postgres dialect, but not in MySQL.
2022-06-03 16:11:24 +02:00
go-jet
c38d2fd2c3
Update README.md
2022-05-16 11:51:47 +02:00
go-jet
2101088d0e
Add support for EXTRACT time/date function.
2022-05-06 11:54:44 +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
34f84c7170
Rename SetQueryLoggerFunc to SetQueryLogger
2022-01-20 16:51:32 +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
038a32b032
Add WITH RECURSIVE statement support
2022-01-04 18:08:06 +01:00
go-jet
47545ce571
Add WITH RECURSIVE support.
2021-12-26 11:34:57 +01:00
go-jet
60ffd004c5
Add USING clause support for DELETE statements
2021-12-08 18:14:57 +01: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
mlaflamm
c47d79ffd7
export GroupByClause type through alias
2021-07-29 09:51:55 -04:00
go-jet
caa81930dc
Reset FROM clause list before new values are set.
2021-05-21 16:25:26 +02:00
go-jet
38541522e6
Fix linter errors
2021-05-16 19:10:43 +02:00
go-jet
a5b7769589
Add RawStatement support
...
RawStatement method creates new sql statements from raw query and optional map of named arguments.
2021-05-15 11:54:41 +02:00
go-jet
7af9072b8d
Allow Raw helper to accept named arguments
2021-05-14 12:15:35 +02:00
go-jet
f30cbb9e89
Add UUID helper function
...
UUID creates string literal expression from uuid object.
uuid can be any uuid type with a String method.
2021-05-11 13:20:07 +02:00
go-jet
256be8a406
[BUG] Update statement reserved word not escaped
...
Update statement, using MODEL struct, now generates escaped SQL identifier if column name is reserved word.
2021-05-09 17:17:14 +02:00