Commit Graph

2431 Commits

Author SHA1 Message Date
Jinzhu d50dbb0896 Fix check valid db name, close #3315 2020-08-27 19:15:40 +08:00
Jinzhu cd54dddd94 Test update with GormValuer 2020-08-27 18:42:40 +08:00
Jinzhu 7a90496701 Test create from sql expr with map 2020-08-27 16:27:59 +08:00
Jinzhu ce8853e7a6 Add GormValuer interface support 2020-08-27 15:03:57 +08:00
Jinzhu 0d96f99499 Update README 2020-08-26 12:22:11 +08:00
Jinzhu 3195ae1207 Allow override alias table in preload conditions 2020-08-25 18:59:19 +08:00
Jinzhu 0f3201e73b friendly invalid field error message 2020-08-25 18:18:16 +08:00
Jinzhu 3dfa8a66f1 Fix panic when delet without pointer, close #3308 2020-08-25 17:27:28 +08:00
Jinzhu 84dbb36d3b Add Golang v1.15 2020-08-24 20:24:25 +08:00
Jinzhu ebdb4edda8 Add AllowGlobalUpdate mode 2020-08-23 20:08:23 +08:00
Jinzhu cc6a64adfb Support smart migrate, close #3078 2020-08-23 18:16:12 +08:00
Jinzhu 3a97639880 Fix unordered joins, close #3267 2020-08-23 10:45:10 +08:00
Jinzhu 2b510d6423 Don't create index for join table, close #3294 2020-08-21 15:40:50 +08:00
Jinzhu f88e8b072c Check valid pointer before use it as Valuer 2020-08-20 18:13:29 +08:00
Jinzhu 06de6e8834 Test same field name from embedded field, close #3291 2020-08-20 10:58:35 +08:00
Jinzhu 0c9870d1ae Test Association Mode with conditions 2020-08-20 10:39:01 +08:00
Jinzhu 528e5ba5c4 Cleanup Model after Count 2020-08-19 20:30:39 +08:00
Jinzhu 3313c11888 Fix embedded struct containing field named ID, close #3286 2020-08-19 19:15:27 +08:00
Jinzhu c1782d60c1 Fix embedded scanner/valuer, close #3283 2020-08-19 15:47:08 +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 50826742fd Add error gorm.ErrInvalidData 2020-08-18 18:00:36 +08:00
Jinzhu dc48e04896 Fix nested embedded struct, close #3278 2020-08-18 11:21:40 +08:00
Jinzhu 9fcc337bd1 Fix create from map 2020-08-17 17:41:36 +08:00
Jinzhu 681268cc43 Refactor Create/Query/Update/DeleteClauses interface 2020-08-17 16:31:09 +08:00
Jinzhu 2a716e04e6 Avoid panic for invalid transaction, close #3271 2020-08-17 12:16:42 +08:00
Jinzhu 6834c25cec Fix stack overflow for embedded self-referred associations, close #3269 2020-08-17 12:02:46 +08:00
Jinzhu 2faff25dfb Fix FirstOr(Init/Create) when assigning with association 2020-08-13 18:38:39 +08:00
Jinzhu 2c4e857125 Should ignore association conditions when querying with struct 2020-08-13 18:09:04 +08:00
Jinzhu dea93edb6a Copy TableExpr when clone statement 2020-08-13 16:28:21 +08:00
Jinzhu ecc946be6e Test update from sub query 2020-08-13 16:05:06 +08:00
Jinzhu 045d5f8538 Fix count with join and no model, close #3255 2020-08-13 12:18:36 +08:00
Jinzhu ec82da396b Merge branch 'caelansar-scanner-valuer-test' 2020-08-13 12:06:07 +08:00
Jinzhu 7d45833f3e Fix driver.Valuer interface returns nil, close #3248 2020-08-13 12:05:55 +08:00
Jinzhu a3dda47afa Don't parse ignored anonymous field 2020-08-13 10:23:23 +08:00
Jinzhu 4a9d3a688a Don't parse ignored anonymous field 2020-08-11 21:22:51 +08:00
Caelansar 15b96ed3f4 add testcase 2020-08-10 15:34:20 +08:00
Jinzhu 39c8d6220b Fix soft delete panic when using unaddressable value 2020-08-06 17:48:46 +08:00
Jinzhu 3df249c127 Use table expr when inserting table, close #3239 2020-08-06 17:12:31 +08:00
Jinzhu da1e54d5ab Add sql-cli 2020-08-06 15:37:36 +08:00
Jinzhu f962872b48 Fix labeler 2020-08-05 14:22:35 +08:00
Jinzhu ff985b90cc Fix failed to guess relations for embedded types, close #3224 2020-08-04 12:25:34 +08:00
Jinzhu c11c939b95 callbacks support sort with wildcard 2020-08-03 21:48:36 +08:00
Jinzhu f83b00d20d Fix Count with Select when Model not specfied, close #3220 2020-08-03 10:30:25 +08:00
Jinzhu 2676fa4fb8 Remove autoincrement tag for join table, close #3217 2020-07-31 18:19:25 +08:00
Jinzhu dc299b900f Use specified table when preloading data with Join 2020-07-31 14:47:47 +08:00
Jinzhu 81c68db87f Fix zero time failed on mysql 8 2020-07-30 17:56:16 +08:00
Jinzhu 07ce8caf7d Remove labeler workflows 2020-07-30 17:42:41 +08:00
lninl 7bb883b665
Auto creating/updating time with unix (milli) second (#3213)
* Auto creating/updating time with unix (milli) second

* add test for 'Auto creating/updating time with unix (milli) second'
2020-07-30 17:39:57 +08:00
Jinzhu 47a5196734 Fix uninitialized Valuer return time.Time, close #3214 2020-07-30 17:37:07 +08:00