Commit Graph

2392 Commits

Author SHA1 Message Date
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
Jinzhu 7c2ecdfc1c Fix use pointer of Valuer as foreign key, close #3212 2020-07-30 10:23:35 +08:00
Jinzhu 2cbdd29f26 Returns error for invalid embedded field, close #3209 2020-07-29 10:23:14 +08:00
Qt a140908839
refactor function convertParams's default case (#3208) 2020-07-28 17:25:03 +08:00
Jinzhu c7667e9299 Refactor Prepared Statement 2020-07-28 14:46:48 +08:00
Qt f4cfa9411b
define err with the same code style (#3199) 2020-07-26 10:03:58 +08:00
Jinzhu 69d8111893 Fix panic when using invalid data, close #3193 2020-07-24 08:32:50 +08:00
Jinzhu c3f52cee8b Don't scan last insert id 0 2020-07-23 23:56:13 +08:00
Jinzhu 6ed697dd02 TestFirstOrCreateWithPrimaryKey, close #3192 2020-07-23 23:41:56 +08:00
Jinzhu 7021db3655 Fix FieldsWithDefaultDBValue for primary field, close #3187 2020-07-22 19:03:19 +08:00
Jinzhu 87112ab1c7 Fix row callback name 2020-07-22 15:05:38 +08:00
Jinzhu da16f7b475 Create extension uuid-ossp for postgres test database 2020-07-22 12:13:40 +08:00
Jinzhu 0546b59743 Fix save many2many associations with UUID primary key, close #3182 2020-07-22 11:28:00 +08:00
Jinzhu ef002fd7ac Add GORMDataType to Field, close #3171 2020-07-20 19:00:03 +08:00
Jinzhu 5d05441067 Test From SubQuery with vars 2020-07-20 08:12:41 +08:00
Jinzhu a0477f94dd Allow Omit with Query, close #3165 2020-07-19 21:48:58 +08:00
Jinzhu 90183fadde Allow advanced table with args 2020-07-19 21:30:24 +08:00
Jinzhu de764d9e3d Replace FullTable with TableExpr 2020-07-17 21:19:21 +08:00
Jinzhu e77156980c Fix panic when using Select/Omit Associations with no schema, close #3160 2020-07-17 15:50:17 +08:00
Jinzhu 6dc583869b Don't use value's first field to guess data type for struct implements GormDataTypeInterface 2020-07-17 12:02:00 +08:00
Jinzhu 362779575c Fix Select with specific symbol, close #3157 2020-07-17 11:24:24 +08:00
Jinzhu 58e3241544 Fix Select with specific symbol, close #3158 2020-07-17 11:06:20 +08:00
Jinzhu b8692c7671 Allow temporarily disable default transaction 2020-07-16 18:05:55 +08:00
Jinzhu e83e210971 Update postgres DSN 2020-07-16 17:15:57 +08:00
Jinzhu 2595402507 Add reviewdog 2020-07-16 13:37:02 +08:00
Jinzhu 4456df7a5d Lint with golangci-lint 2020-07-16 11:27:12 +08:00
Jinzhu 0028246ea5 Don't set DefaultValueInterface when DefaultValue not set, close #3152 2020-07-16 10:19:24 +08:00
Jinzhu 72a64bef11 Don't merge clause From 2020-07-15 10:25:10 +08:00
Jinzhu 1f05cb7e55 Handle Associations with pointer of pointer, close #3130 2020-07-10 22:53:03 +08:00
Jinzhu d4b462a351 Fix alias keyword with Table, close #3104 2020-07-10 21:11:28 +08:00
Jinzhu 33c48611b6 Fix customize table with Delete, close #3129 2020-07-10 13:08:29 +08:00
Jinzhu c0319f6eed Test map with named argument for raw sql 2020-07-10 12:52:01 +08:00
Jinzhu bba569af2b Add NamedArg support 2020-07-10 12:28:24 +08:00
Jinzhu bc3728a18f Fix concurrent map writes, close #3126 2020-07-10 07:14:37 +08:00
Jinzhu c091cd6aa4 Update stale action 2020-07-09 22:14:11 +08:00
Jinzhu d04984323f Add stale for v1 action 2020-07-09 22:02:29 +08:00
Jinzhu a8655f7947 Fix auto select with smaller struct for slices 2020-07-09 12:15:35 +08:00
Jinzhu 0790ff6937 Update tests helper to check time 2020-07-09 09:42:27 +08:00
Jinzhu 2ae0653af2 Fix ambiguous column when using same column name in join table, close #3120 2020-07-09 09:03:48 +08:00
Jinzhu e1084e78d0 Allow customize AutoIncrement for primary field 2020-07-08 18:50:49 +08:00