heige
|
221d0a0ec1
|
optimize value of reflection length (#4152)
|
2021-03-08 10:20:04 +08:00 |
Jinzhu
|
189547f615
|
Fix new session with Begin, close #4120
|
2021-02-26 16:43:43 +08:00 |
Jinzhu
|
9790103e68
|
Fix Where with empty struct, close #3966
|
2021-01-19 16:37:49 +08:00 |
Jinzhu
|
3d87575e7e
|
make Count compatible with Select with Count func, close #3962
|
2021-01-18 19:43:04 +08:00 |
Jinzhu
|
4a15540504
|
SkipDefaultTransaction skip CreateInBatches transaction
|
2021-01-18 11:43:42 +08:00 |
Jinzhu
|
79628be2c2
|
Fix wrong RowsAffected if not data found
|
2021-01-14 16:01:23 +08:00 |
Jinzhu
|
d888c799d7
|
Change UpdatedAt to current time when doing OnConflict UpdateAll
|
2021-01-08 19:20:42 +08:00 |
Jinzhu
|
5e72cd9a2b
|
Add ErrPrimaryKeyRequired if schema has no primary key defined
|
2021-01-06 14:42:42 +08:00 |
Jinzhu
|
468152d45b
|
Add DisableNestedTransaction support
|
2020-12-16 19:33:35 +08:00 |
Jinzhu
|
1ef1f0bfe4
|
Fix Count with complicated Select, close #3826
|
2020-12-06 14:30:42 +08:00 |
Jinzhu
|
51568ba4ab
|
Delete select clause after Count, close #3814
|
2020-12-02 17:27:07 +08:00 |
Jinzhu
|
0c12a4c360
|
Add CreateBatchSize option
|
2020-12-02 14:59:50 +08:00 |
Jinzhu
|
e7f45d5b01
|
Add error check for Transaction
|
2020-11-19 10:45:17 +08:00 |
Jinzhu
|
9df9f7688b
|
Change UpdatingColumn to SkipHooks
|
2020-11-17 17:49:43 +08:00 |
Jinzhu
|
26504f5cae
|
Use NewDB to replace WithConditions for Session
|
2020-11-17 16:28:37 +08:00 |
Jinzhu
|
320f33061c
|
Fix FindInBatches to modify the query conditions, close #3734
|
2020-11-17 11:19:04 +08:00 |
Jinzhu
|
a8db54afd6
|
Add CreateInBatches supports
|
2020-11-16 21:42:30 +08:00 |
Jinzhu
|
62be27d3ca
|
Add OnConflict UpdateAll support
|
2020-11-16 20:22:08 +08:00 |
Jinzhu
|
c1bb8e4551
|
Should not display the record not found error when using FirstOrXXX, close #3748
|
2020-11-16 11:20:13 +08:00 |
Jinzhu
|
db2630cb3a
|
Fix data race problem when using Scan, close #3662
|
2020-10-22 17:32:39 +08:00 |
Jinzhu
|
231aba53c5
|
Fix count with order by
|
2020-10-22 11:28:43 +08:00 |
Jinzhu
|
9b2181199d
|
Fix soft delete with OrCondition, close #3627
|
2020-10-19 14:50:11 +08:00 |
Jinzhu
|
9eec6ae066
|
Fix affected rows for Scan, change affected rows count for row/rows to '-', close #3532
|
2020-09-27 12:25:38 +08:00 |
Jinzhu
|
072f1de83a
|
Add DryRunModeUnsupported Error for Row/Rows
|
2020-09-18 21:35:46 +08:00 |
Jinzhu
|
02fb382ec0
|
Support scan into int, string data types
|
2020-09-11 15:01:02 +08:00 |
Jinzhu
|
05794298bd
|
Fix Save with specified table, close #3396
|
2020-09-06 12:22:08 +08:00 |
Jinzhu
|
dbaa6b0ec3
|
Fix Scan struct with primary key, close #3357
|
2020-09-02 16:14:26 +08:00 |
Jinzhu
|
b4166d9515
|
Fix V2 Save compatibility, close #3332
|
2020-08-30 10:21:11 +08:00 |
Jinzhu
|
59586dcd31
|
Fix unnecessary duplicated primary condition when using Save, close #3330
|
2020-08-29 23:02:19 +08:00 |
Jinzhu
|
d50dbb0896
|
Fix check valid db name, close #3315
|
2020-08-27 19:15:40 +08:00 |
Jinzhu
|
528e5ba5c4
|
Cleanup Model after Count
|
2020-08-19 20:30:39 +08:00 |
deepoli
|
3411425d65
|
fix return value and delete unused default (#3280)
|
2020-08-18 19:03:09 +08:00 |
Jinzhu
|
b5de8aeb42
|
Fix overrite SELECT clause
|
2020-08-18 18:58:53 +08:00 |
Jinzhu
|
2a716e04e6
|
Avoid panic for invalid transaction, close #3271
|
2020-08-17 12:16:42 +08:00 |
Jinzhu
|
2faff25dfb
|
Fix FirstOr(Init/Create) when assigning with association
|
2020-08-13 18:38:39 +08:00 |
Jinzhu
|
f83b00d20d
|
Fix Count with Select when Model not specfied, close #3220
|
2020-08-03 10:30:25 +08:00 |
Qt
|
f4cfa9411b
|
define err with the same code style (#3199)
|
2020-07-26 10:03:58 +08:00 |
Jinzhu
|
4456df7a5d
|
Lint with golangci-lint
|
2020-07-16 11:27:12 +08:00 |
Jinzhu
|
bba569af2b
|
Add NamedArg support
|
2020-07-10 12:28:24 +08:00 |
Jinzhu
|
d02b592c6c
|
Better support Count in chain
|
2020-07-01 10:19:52 +08:00 |
Jinzhu
|
ee1f46e3a1
|
Allow to use sql function in Group, Pluck
|
2020-06-30 23:06:48 +08:00 |
Jinzhu
|
7e1fa4a44d
|
Fix Count after Session
|
2020-06-23 22:41:41 +08:00 |
Jinzhu
|
32bd6b3e8f
|
Fix Count with Select
|
2020-06-23 08:51:01 +08:00 |
Jinzhu
|
7dc255acfe
|
Add SavePoint/RollbackTo/NestedTransaction
|
2020-06-19 18:30:04 +08:00 |
Jinzhu
|
2c1b04a2cf
|
Fix failed to create second record in same transaction, close #3060
|
2020-06-19 12:38:03 +08:00 |
2BFL
|
d716e456f4
|
fix broken url (#3053)
|
2020-06-15 12:28:35 +08:00 |
Jinzhu
|
45cb6b49bf
|
Add FindInBatches support
|
2020-06-10 15:36:34 +08:00 |
Jinzhu
|
f3424c6864
|
Support save slice of data
|
2020-06-10 00:02:14 +08:00 |
Jinzhu
|
22ff8377df
|
Fix Pluck with Table only
|
2020-06-09 15:36:10 +08:00 |
Jinzhu
|
4555796b62
|
Refactor Execute callbacks
|
2020-06-08 22:32:35 +08:00 |
Douglas Danger Manley
|
13f96f7a15
|
Spelling fix for "condtion" -> "condition" (#3042)
This fixes a spelling error in the word "condition"; in particular,
the `BuildCondtion` function should be named `BuildCondition`.
|
2020-06-08 11:38:51 +08:00 |
Jinzhu
|
e7b2e92ce3
|
Remove RecordNotFound method
|
2020-06-07 22:03:45 +08:00 |
Jinzhu
|
6937d713c3
|
Refactor clauses
|
2020-06-06 22:52:08 +08:00 |
Jinzhu
|
163200d05f
|
Test Hooks
|
2020-06-05 20:24:15 +08:00 |
Jinzhu
|
eda2f023b0
|
Add Distinct support
|
2020-06-05 19:19:12 +08:00 |
Jinzhu
|
c8e7878b3e
|
Add PrepareStmt support
|
2020-06-05 11:40:24 +08:00 |
Jinzhu
|
94685d1024
|
Fix can't scan null value into normal data types
|
2020-06-02 23:30:26 +08:00 |
Jinzhu
|
e986371a42
|
Rename package name
|
2020-06-02 09:18:01 +08:00 |
Jinzhu
|
a02cb39a45
|
Add more tests
|
2020-06-01 00:36:18 +08:00 |
Jinzhu
|
95a6539331
|
Test Pluck
|
2020-05-31 21:11:20 +08:00 |
Jinzhu
|
5b1d3e4a77
|
Test Joins
|
2020-05-31 20:21:52 +08:00 |
Jinzhu
|
5457fe88e6
|
Test Transactions
|
2020-05-31 18:51:43 +08:00 |
Jinzhu
|
9dd516a7e8
|
Test UpdateColumn
|
2020-05-30 17:34:22 +08:00 |
Jinzhu
|
dca5244387
|
Add FirstOrCreate support
|
2020-05-28 16:21:10 +08:00 |
Jinzhu
|
ac8708b500
|
Add FirstOrInit support
|
2020-05-28 13:12:56 +08:00 |
Jinzhu
|
5be642a435
|
Add ScanRows support
|
2020-05-26 23:13:05 +08:00 |
Jinzhu
|
51c5be0503
|
Finish Scan support
|
2020-05-26 21:30:17 +08:00 |
Jinzhu
|
2db33730b6
|
Add Slice Association for BelongsTo
|
2020-05-24 20:53:20 +08:00 |
Jinzhu
|
cbc4a81140
|
Add Count tests
|
2020-05-24 11:35:19 +08:00 |
Jinzhu
|
f0a442adff
|
Refactor tests
|
2020-05-23 23:50:48 +08:00 |
Jinzhu
|
56ca9a87e0
|
Add permission check when create associations
|
2020-04-16 10:29:18 +08:00 |
Jinzhu
|
9e8a4db36b
|
Use *gorm.DB to replace gorm.DB
|
2020-03-10 08:39:33 +08:00 |
Jinzhu
|
3aa1891068
|
Add sync pool
|
2020-03-09 15:32:55 +08:00 |
Jinzhu
|
a145d7e019
|
Refactor structure
|
2020-03-09 14:25:50 +08:00 |
Jinzhu
|
a158d1ada0
|
Add GroupBy test
|
2020-03-08 18:05:22 +08:00 |
Jinzhu
|
ce0e6f9f33
|
Add Delete test
|
2020-03-08 14:51:52 +08:00 |
Jinzhu
|
2da0ad5bed
|
Add more tests for Update
|
2020-03-08 13:24:08 +08:00 |
Jinzhu
|
cbd55dbcd5
|
Add Update test
|
2020-03-07 15:20:09 +08:00 |
Jinzhu
|
b0e1bccf4a
|
Support scan into map, slice, struct
|
2020-03-04 11:33:50 +08:00 |
Jinzhu
|
1403ee70c3
|
Make Query works
|
2020-03-03 14:18:12 +08:00 |
Jinzhu
|
5ccd76f76c
|
Setup Transaction
|
2020-02-23 23:28:59 +08:00 |
Jinzhu
|
1895d281bf
|
Add migrator tests for mysql
|
2020-02-22 23:08:20 +08:00 |
Jinzhu
|
6d58b62fd4
|
Add sqlite migration tests
|
2020-02-22 20:57:29 +08:00 |
Jinzhu
|
215f5e7765
|
Add Raw, Row, Rows
|
2020-02-22 19:41:01 +08:00 |
Jinzhu
|
1f38ec4410
|
Finish clauses tests
|
2020-02-08 23:23:45 +08:00 |
Jinzhu
|
46b1c85f88
|
Add more clauses
|
2020-02-04 08:56:15 +08:00 |
Jinzhu
|
d52ee0aa44
|
Work on create callbacks
|
2020-02-03 10:40:03 +08:00 |
Jinzhu
|
d833efe8b9
|
Work on clauses
|
2020-02-02 19:11:17 +08:00 |
Jinzhu
|
8cb15cadde
|
Improve test structure
|
2020-02-02 08:35:01 +08:00 |
Jinzhu
|
9d5b9834d9
|
Refactor builder
|
2020-01-30 19:47:00 +08:00 |
Jinzhu
|
b9cce2be6a
|
Add clause, DB API, model definition
|
2020-01-29 19:22:44 +08:00 |