Commit Graph

  • 699093ae6c feat: add functional option for Config and add OpenWithOption func for gorm DB. daheige 2021-01-31 17:30:08 +08:00
  • 04e57577c6
    Merge pull request #1 from go-gorm/master heige 2021-01-31 15:30:18 +08:00
  • bce40e6d6a Add field tag to ignore migration yrong1997 2021-01-31 13:39:00 +08:00
  • 7598204dc3 Support FullSaveAssociations for association mode, close #4010 Jinzhu 2021-01-29 16:40:07 +08:00
  • 6e3ac74b7e Fix preloading all associations together with nested associations, close #4016 Jinzhu 2021-01-28 20:17:19 +08:00
  • 4267df02af
    Fix typo in README (#4012) David Harkness 2021-01-27 18:21:58 -08:00
  • 9f66cdc6c8
    Fix typo in README David Harkness 2021-01-27 17:12:33 -08:00
  • 8500380e60 Add name checker test, close #4007 Jinzhu 2021-01-27 17:45:48 +08:00
  • cc61202fe2
    retrieving gorm object support pointer (#4006) Ben 2021-01-27 11:50:15 +08:00
  • 81aa949105 Remove the uncessary reflect.Ptr Jinzhu 2021-01-27 11:24:34 +08:00
  • ba59065024 retrieving gorm object support pointer rorschach 2021-01-26 20:08:41 +08:00
  • f6308ed223
    refactor: fix typo in tests.yml (#4005) Manyanda Chitimbo 2021-01-27 04:18:39 +01:00
  • 470a1b3933 retrieving gorm object support pointer rorschach 2021-01-26 20:08:41 +08:00
  • 360db17b2c
    refactor: fix typo in tests.yml Manyanda Chitimbo 2021-01-26 12:46:18 +01:00
  • 7f198ead0e Refactor nested preloading associations, close #3970 v1.20.12 Jinzhu 2021-01-26 16:33:19 +08:00
  • 08678106a4 Support replace associations without the creation in association mode, close #3937 Jinzhu 2021-01-26 14:34:21 +08:00
  • 916338a9e1 Test migrate constraints, close #3986 Jinzhu 2021-01-26 13:39:34 +08:00
  • 59c01b7943 Make migrator works with dbresolver, close #3992 Jinzhu 2021-01-25 10:30:57 +08:00
  • f8bd4c4875 Don't create index if there are error exist, close #3976 Jinzhu 2021-01-24 10:23:04 +08:00
  • ba5bfca733
    Update model.go juancer 2021-01-23 05:45:22 +01:00
  • 35ebfe6874 Support group conditions with single OR condition Jinzhu 2021-01-20 18:24:05 +08:00
  • 9790103e68 Fix Where with empty struct, close #3966 Jinzhu 2021-01-19 16:37:49 +08:00
  • 6095dbf939 Fix parse embedded relations, close #3964, #3965 Jinzhu 2021-01-19 15:40:04 +08:00
  • 182028be1a field use another cacheStore wener 2021-01-19 15:06:36 +08:00
  • 6e256da84c detect embedded by namer wener 2021-01-19 15:01:02 +08:00
  • 4a3a93fdac add current schema to cacheStore when ParseField wener 2021-01-19 02:12:29 +08:00
  • 3d87575e7e make Count compatible with Select with Count func, close #3962 Jinzhu 2021-01-18 19:43:04 +08:00
  • 4a15540504 SkipDefaultTransaction skip CreateInBatches transaction Jinzhu 2021-01-18 11:43:42 +08:00
  • 59fa07953c Preload with settings, close #3945 Jinzhu 2021-01-15 17:15:59 +08:00
  • be68656b87
    fix error formatting jrapoport 2021-01-14 20:41:10 -08:00
  • 26f701ab57
    fix: Allowing the settings be passed through Lewis Theobald 2021-01-14 15:46:44 +00:00
  • 79628be2c2 Fix wrong RowsAffected if not data found Jinzhu 2021-01-14 16:01:23 +08:00
  • bb8b43df61 extract common parts in logger and optimize code 0x2d3c 2021-01-13 20:36:06 +08:00
  • ce610a9560
    title case schema name (#3940) Lisa Casner 2021-01-12 21:05:05 -08:00
  • 763ae647b3 title case schema name lisamryl 2021-01-12 12:48:24 -08:00
  • de850edb4f Fix Change UpdatedAt to current time when doing OnConflict UpdateAll Jinzhu 2021-01-11 19:16:47 +08:00
  • b864a5457a Allow foreign key following the default naming conventions, close #3928 v1.20.11 Jinzhu 2021-01-10 17:32:17 +08:00
  • 0208f532e0 use NowFunc replace time.Now 0x2d3c 2021-01-10 17:12:33 +08:00
  • fe553a7c1a Fix prepared statement in transaction mode can't be shared in normal operations, close #3927 Jinzhu 2021-01-10 16:46:06 +08:00
  • 7302c8a136 Fix tests and logger Jinzhu 2021-01-10 15:27:53 +08:00
  • 7ebb320f3e Allow customize join table's table in callback Jinzhu 2021-01-10 14:58:54 +08:00
  • f9131e309d
    reduce DB's Use method complexity and make it easier to understand (#3930) Qt 2021-01-10 10:15:48 +08:00
  • 1e0840ccd8 reduce DB's Use method complexity and make it easier to understand 0x2d3c 2021-01-09 22:22:57 +08:00
  • d888c799d7 Change UpdatedAt to current time when doing OnConflict UpdateAll v1.20.10 Jinzhu 2021-01-08 18:47:06 +08:00
  • a5bfe2f39d Keep Error for new Session Jinzhu 2021-01-07 11:45:40 +08:00
  • bf0fd9bef6 Fix logger check LogLevel Jinzhu 2021-01-06 16:07:19 +08:00
  • 5e72cd9a2b Add ErrPrimaryKeyRequired if schema has no primary key defined Jinzhu 2021-01-06 14:42:42 +08:00
  • 435bf70865 Add OnConflict OnConstraint support, close #3882 Jinzhu 2021-01-05 21:31:51 +08:00
  • 6d260a86bd Fix Set/Get settings when saving associations, close #3908 Jinzhu 2021-01-05 21:12:31 +08:00
  • 53b3ebdd1d Add invalid data error when building conditions Jinzhu 2021-01-05 21:01:16 +08:00
  • 00a785cd68 Don't use invalid value to build conditions, close #3912 Jinzhu 2021-01-05 18:01:51 +08:00
  • 60b769c2c8 OnConflict UpdateAll includes fields that specified default values via tag Jinzhu 2021-01-04 15:13:56 +08:00
  • 9b8d3b3a0f
    fix typo (#3911) Philip Sahli 2021-01-04 04:30:05 +01:00
  • 1c5cd2f3fe fix typo Philip Sahli 2021-01-03 15:34:42 +01:00
  • c042bb8755
    fix bug sdghchj 2020-12-31 13:54:17 +08:00
  • 04f8798a85
    add tag "ALWAYSUPDATE" to update zero value sdghchj 2020-12-31 09:21:45 +08:00
  • d96acc5df6
    optimize sdghchj 2020-12-31 02:19:35 +08:00
  • bbeb354079
    fix zero pointer sdghchj 2020-12-31 01:17:03 +08:00
  • 3bfddf8c74
    add IsZero interface to check field value sdghchj 2020-12-31 00:20:56 +08:00
  • 1b8cb07cf2 Allow Where select fields when searching with struct Jinzhu 2020-12-30 17:42:27 +08:00
  • 79864af9ff Allow customize auto increment increment Jinzhu 2020-12-30 11:16:40 +08:00
  • 6c0ee2700a Allow to use Valuer with Eq expression, #3899 Jinzhu 2020-12-30 10:42:13 +08:00
  • 065787c54e Compatible with with foreign key with ID suffix #3890 Jinzhu 2020-12-28 18:20:42 +08:00
  • 8bf50a5592 Fix parse relations if only specfied References, close #3890 Jinzhu 2020-12-28 17:58:12 +08:00
  • 6418db5a4b
    repair test sdghchj 2020-12-28 14:41:29 +08:00
  • 524af81b88
    repair test sdghchj 2020-12-28 13:58:21 +08:00
  • ed06a5a461
    test MergeClause of Set sdghchj 2020-12-28 13:27:50 +08:00
  • 51210324ac
    correct MergeClause of Set sdghchj 2020-12-28 13:26:46 +08:00
  • ade0bd6d60 Fix SELECT with sql expression in some cases, close #3889 Jinzhu 2020-12-28 10:40:30 +08:00
  • ad8a5c0d1a Add QueryFields mode when query many2many relations v1.20.9 Jinzhu 2020-12-25 16:35:25 +08:00
  • 59730417aa Fix auto migrate field with customized field type, close https://github.com/go-gorm/mysql/issues/20 Jinzhu 2020-12-23 17:31:47 +08:00
  • ed83e82acf
    add RollbackUnlessComitted, to make it easy to defer a Rollback. Ruben de Vries 2020-12-21 14:08:06 +01:00
  • 12f16f11b2 Use tablename from provided model when querying WHERE with a struct argument Leen van Besien 2020-12-21 13:28:15 +03:00
  • ae5f64a0c0 fix updates exist PrimaryKey baxiang 2020-12-21 17:52:00 +08:00
  • 77bf4aecc6 Create associations w/o nested transaction option Jinzhu 2020-12-18 13:25:52 +08:00
  • 468152d45b Add DisableNestedTransaction support Jinzhu 2020-12-16 19:33:35 +08:00
  • 6848ae872f Fix gorm.Expr with SubQuery, fix #3857 Jinzhu 2020-12-15 15:35:11 +08:00
  • 0f00493c50 Continue to update tracking fields even not selected with Select, but skip them if omited with Omit, fix #3856 Jinzhu 2020-12-15 11:18:29 +08:00
  • 14a0976dd4 populate the DeletedAt field when soft delete, fix #3855 Jinzhu 2020-12-15 10:39:20 +08:00
  • 21c3f05aa2 Use transaction's conn when preparing statement Jinzhu 2020-12-14 18:30:43 +08:00
  • 51b5208599
    Fix building of clause.Eq and clause.Neq expressions that fail to handle (*T)(nil) use cases correctly (#3848) vellotis 2020-12-11 08:07:23 +02:00
  • 22f2e33d65 Fix use cases for clause.Eq and clause.Neq when value is nil pointer of a primitive type Kaarel Raspel 2020-12-11 00:19:05 +02:00
  • 3c9c3739db Update tests to cover building clause.Eq and clause.Neq when value could be a nil pointer of a primitive Kaarel Raspel 2020-12-11 00:18:14 +02:00
  • e1952924e2 Support named Joins, close #3833 Jinzhu 2020-12-07 10:31:06 +08:00
  • 6a0fca2195 Return error for invalid relations definition, close #3830 Jinzhu 2020-12-06 18:07:12 +08:00
  • 1ef1f0bfe4 Fix Count with complicated Select, close #3826 Jinzhu 2020-12-06 14:04:37 +08:00
  • f655041908 Allow overwrite ignored field's permission, close #3829 Jinzhu 2020-12-06 11:06:52 +08:00
  • 61d3a4d6ea
    Fix schema initialization paths (#3825) Andy Bursavich 2020-12-03 19:28:38 -08:00
  • 444c38806d
    Unnest common schema initialization Andy Bursavich 2020-12-03 06:44:55 -08:00
  • 30461cc297
    Fix schema initialization paths Andy Bursavich 2020-12-03 06:42:19 -08:00
  • f2321ca164
    Fixed creation of associated records with composite primary keys (go-gorm#3817) (#3818) v1.20.8 Andrei Baibaratsky 2020-12-03 08:00:26 +01:00
  • 52e9d62c4e
    Fixed creation of associated records with composite primary keys (go-gorm#3817) baibaratsky 2020-12-02 18:28:46 +01:00
  • 51568ba4ab Delete select clause after Count, close #3814 Jinzhu 2020-12-02 17:27:07 +08:00
  • 0c12a4c360 Add CreateBatchSize option Jinzhu 2020-12-02 14:59:50 +08:00
  • 41e52f343a
    fix: scan more base type and sql.NullXXX (#3813) SmallTianTian 2020-12-02 14:00:16 +08:00
  • b224312187 fix: scan more base type and sql.NullXXX tick 2020-12-02 12:06:14 +08:00
  • acedbb8310
    Fix Scan int32, uint32 (#3801) Dakatan 2020-11-30 11:09:08 +09:00
  • 0d0c9e7458 Fix Scan int32, uint32 DaisukeTakada 2020-11-28 02:11:07 +09:00
  • fc871d266e update 支持postgres RETURNING 语法 wanliping 2020-11-27 13:09:44 +00:00
  • 22c2027a30
    Update update.go lvcarrot 2020-11-27 20:20:23 +08:00