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
go-jet
38541522e6
Fix linter errors
2021-05-16 19:10:43 +02:00
go-jet
3021a6a0fd
Add support to retrieve Rows from statement
...
Rows statement method executes statements over db connection/transaction and returns Rows.
2021-05-16 18:46:50 +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
go-jet
92d02fef78
Add DECIMAL constructor for Float literal.
...
DECIMAL constructor is used to pass a decimal number to the SQL query without precision loss.
2021-05-09 16:25:54 +02:00
go-jet
4ef0113f6b
Add implicit cross join support
2021-05-03 18:48:15 +02:00
go-jet
0cba1f6401
Lateral - initial commit.
2021-04-30 14:02:49 +02:00
go-jet
38776e35ab
Remove methods from Table interface that affects receiver object
...
Modifying SQL builder receiver object can produce unwanted side effects.
2021-04-30 14:02:49 +02:00
Joonas Haapsaari
1e511654fd
Schema rename support
...
- Support for renaming table schemas
* Table support for renaming schema
* Empty schema name is left out (using default schema for the
database connection)
* Generated code support for obtaining a version of the table with
renamed schema, similarly as the `AS` function works
* Unit tests for setting and clearing the schema name
2021-04-30 14:02:49 +02:00
go-jet
7bafa1ffef
Merge pull request #73 from DevDevious/unsigned-integers
...
Unsigned integer literal support
2021-02-23 14:09:47 +01:00
DevDevious
6b06bc6a37
Added unsigned integer literals.
2021-02-22 13:58:28 -05:00