1406 Commits

Author SHA1 Message Date
Gerhard Gruber
ccdd740abf denisenkom -> microsoft 2025-02-10 08:24:23 +01:00
Daniel Hammerschmid
2c8160322f Fixed nil pointer handling in Neq expression 2024-07-17 18:38:38 +02:00
Daniel Hammerschmid
375f824e76 Added BeginTx
Allows the use of sql.DB.BeginTx and with it the option to specify the
transaction isolation level.
2024-02-22 06:40:53 +01:00
destel
4c50b3f67a fixed nested preload error handling issue 2023-11-27 14:46:55 +01:00
FFuchsi
58eecb356c
added average expression (#29) 2023-11-16 16:40:59 +01:00
FFuchsi
3b1dc9c328
Added OrderByCase Expression (#14) 2023-09-26 09:35:25 +02:00
Lukas Jorg
3ca61d4d7b Improved TX callback handling for rollback callbacks 2023-08-02 16:57:14 +02:00
Gerhard Gruber
d89c6ace73 Added more possibilities for transaction hooks 2023-07-17 15:31:58 +02:00
Lukas Jorg
246897fa79 Added UpdateFieldsWithoutHooks method 2023-06-29 12:33:14 +02:00
Gerhard Gruber
30a4f9bcaa
Added AfterCommit callbacks (#25)
Added AfterCommit callbacks
2023-06-29 10:07:04 +02:00
anton98i
c7f668094a Improved WrapInTx error handling 2022-12-21 07:21:39 +01:00
Daniel Hammerschmid
ba791c8b56 Has many preload in chunks to avoid mssql parameter limit 2022-11-09 15:11:52 +01:00
anton98i
77fc126a0d Expresions: added CAO and LAO (alias optional) 2022-08-24 18:09:04 +02:00
Daniel Hammerschmid
9235aea183 Added functions SelectExprs, MaxExpr, MinExp 2022-08-23 19:18:27 +02:00
FlorianVAG
2c94bb4e0a refactor: reduced code duplication 2022-07-19 16:03:20 +02:00
Daniel Hammerschmid
56a148b316 Added Coalesce and TimestampDiff expression 2022-07-19 16:03:20 +02:00
Daniel Hammerschmid
a4919ae554 Preload in chunks to avoid mssql parameter limit 2022-07-18 11:07:07 +02:00
markussilberbauer-dm
25fabd9f40 Update expression_ext.go 2022-06-30 17:23:07 +02:00
markussilberbauer-dm
e075423929 Update expression_ext.go 2022-06-30 16:30:48 +02:00
markussilberbauer-dm
1acc3bb3ae Update expression_ext.go 2022-06-30 16:30:48 +02:00
Lukas Jorg
c9e5b3665c Quoted table name in join expression 2022-03-29 08:10:02 +02:00
Gerhard Gruber
28971c7899 Fixed querying on case sensitive systems 2022-02-24 13:08:00 +01:00
Gerhard Gruber
edbcbe3126 Fixed limit and offset for subquery 2021-11-23 15:04:56 +01:00
Gerhard Gruber
30f2304e9d Do not order subquery if no limit or order is applied 2021-11-23 14:51:30 +01:00
Gerhard Gruber
de609de5b3 order by for delete not supported 2021-11-23 14:44:27 +01:00
Gerhard Gruber
a06ca0d4d6 order by for update not supported 2021-11-23 14:36:56 +01:00
Gerhard Gruber
edc2d5cc57 Try to fix join errors on MSSQL 2021-11-23 14:17:12 +01:00
Gerhard Gruber
7eb0cacec0 Added LowerExpr and UpperExpr 2021-11-18 09:28:03 +01:00
Gerhard Gruber
9e23996e16 Added Lower and Upper 2021-11-18 09:25:27 +01:00
Gerhard Gruber
221f8963db Added sub-transaction detection to WrapInTx 2021-10-27 12:22:54 +02:00
Gerhard Gruber
410393c804 try to fix too much updates 2021-10-22 12:18:02 +02:00
Gerhard Gruber
8417729f4b Update issue with UpdateFields
When calling UpdateFields on a DB, it modified the DB and the field names persisted
2021-10-21 19:52:23 +02:00
Gerhard Gruber
9922312e08 One more situation with empty in arrays 2021-10-21 17:39:54 +02:00
Gerhard Gruber
5fecbbd4e2 in and not in support empty arrays 2021-10-21 17:33:34 +02:00
Gerhard Gruber
0e9bb664cd Fixed variable name 2021-09-15 16:46:35 +02:00
Lukas Jorg
f8938253ce Implemented small method to disable association saving 2021-09-14 07:45:42 +02:00
Lukas Jorg
98d691603d Created transaction wrapper 2021-09-13 09:19:42 +02:00
Gerhard Gruber
0caca1a6f9 Remove WHERE word 2021-09-08 09:01:03 +02:00
Gerhard Gruber
099a4048ae Fixed bind variable resolution 2021-09-08 08:55:17 +02:00
Gerhard Gruber
4d92c6df26 Removed duplicated method 2021-09-08 08:19:34 +02:00
Gerhard Gruber
c4a4f834f7 Added GetSQLWhereClause 2021-09-08 08:04:46 +02:00
Gerhard Gruber
9cf19aaa35 Added GetSQL method 2021-09-07 20:59:42 +02:00
Gerhard Gruber
4878e0917e Fix multi-order in a better way
First and Last do not order if query is already ordered (inspired by ActiveRecord)
2021-08-10 12:06:43 +02:00
Gerhard Gruber
f930ed782b Fix multiple columns in order by clause 2021-08-10 12:06:43 +02:00
Daniel Hammerschmid
2435f46bf8 Added function gorm.Concat 2021-08-05 14:47:12 +02:00
maddie
12fab57a74 Improve preload speed
All credits to @vanjapt who came up with this patch.

(cherry picked from commit 012d1479740ec593b0c07f0372e0111c01c3b34a)
2021-05-12 17:49:51 +02:00
Gerhard Gruber
2ce058e0fe Ignore associations in UpdateFields 2021-03-25 14:04:30 +01:00
FFuchsi
b55b8aef36
added group concat expression (#10) 2021-03-25 14:03:56 +01:00
Daniel Hammerschmid
968a09b86f Added funcs QuoteExpr and Min to expression extension 2021-03-17 11:42:28 +01:00
Daniel Hammerschmid
96758ec560 Added func SumExpr to expr 2020-10-30 09:31:08 +01:00