Commit Graph

  • 0f77500917 Waiting for schema to be initialized, close #3790 Jinzhu 2020-11-27 17:04:56 +08:00
  • 6950007d6a Fix failed to parse relations when using goroutinue, close #3790 Jinzhu 2020-11-27 14:32:20 +08:00
  • 590e73ff95 test: no cache preload in goroutine rokeyzhao 2020-11-26 20:27:55 +08:00
  • 557b874ee3 Fix check field's precision Jinzhu 2020-11-25 14:55:53 +08:00
  • 66e8a72bf1 Support NameReplace for NamingStrategy, close #3779 Jinzhu 2020-11-23 11:24:07 +08:00
  • 2d8738b353 Update Leonid Bugaev 2020-11-22 20:08:48 +03:00
  • 6186a4daa7 allow SkipHooks when preload & save associations Jinzhu 2020-11-20 16:56:52 +08:00
  • dec8748512 Refactor QueryFields Option Jinzhu 2020-11-20 15:44:39 +08:00
  • 47ffd0bef4
    Select all fields in SQL queries avoiding the SELECT * FROM (#3731) Luis Guillermo Gómez 2020-11-20 02:38:25 -05:00
  • e3b4e0418f Inherit SkipHooks option when preloading associations, close #3772 Jinzhu 2020-11-20 15:11:02 +08:00
  • 0ec66e3286 Use QueryFields to execute the SQL query with all fields of the table Luis Gómez 2020-11-19 13:13:24 -05:00
  • d66af581b4
    Fix Association.Replace() error returning (#3766) Deviller 2020-11-19 14:24:34 +03:00
  • 991d6163d9 Fallback to gorm.Model at TestAssociationNotNullClear() Deviller 2020-11-19 12:58:25 +03:00
  • afac9e27a7 Fix Association.Replace() error returning Deviller 2020-11-19 12:15:58 +03:00
  • e357d9c9b1 Fix Association.Replace() error returning Deviller 2020-11-19 11:57:54 +03:00
  • e7f45d5b01 Add error check for Transaction v1.20.7 Jinzhu 2020-11-19 10:45:17 +08:00
  • c6cfe4f7b2
    Update go.mod Leonid Bugaev 2020-11-18 20:51:38 +03:00
  • c2b9960364
    Update go.mod Leonid Bugaev 2020-11-18 20:50:47 +03:00
  • 2e18fbf211 Update Leonid Bugaev 2020-11-18 20:46:13 +03:00
  • a1a30c38de Allow to omit fields when upsert associations, close #3762 Jinzhu 2020-11-18 19:06:49 +08:00
  • a4a0a53d8c Select table name with fields in SQL queries Luis Gómez 2020-11-17 10:10:55 -05:00
  • 54b80b18bc Allow to omit fields in associations, close #3752 Jinzhu 2020-11-17 21:49:40 +08:00
  • 50df9da6a1 Allow to skip associations when creating join table for many2many, close #3605 Jinzhu 2020-11-17 20:24:08 +08:00
  • 694e42d6a1 Fix clause.IN with only one value of multiple rows Jinzhu 2020-11-17 19:11:16 +08:00
  • 9df9f7688b Change UpdatingColumn to SkipHooks Jinzhu 2020-11-17 17:49:43 +08:00
  • 26504f5cae Use NewDB to replace WithConditions for Session Jinzhu 2020-11-17 15:41:17 +08:00
  • f6e1786ca2 Add skip hooks support Jinzhu 2020-11-17 15:19:58 +08:00
  • f5c2126c29 Fix FindInBatches tests Jinzhu 2020-11-17 13:14:34 +08:00
  • 320f33061c Fix FindInBatches to modify the query conditions, close #3734 Jinzhu 2020-11-17 11:19:04 +08:00
  • 298b3ac523 Add hooks after completion of Migrate Value kain 2020-11-17 00:06:11 +08:00
  • a8db54afd6 Add CreateInBatches supports Jinzhu 2020-11-16 21:42:30 +08:00
  • 62be27d3ca Add OnConflict UpdateAll support Jinzhu 2020-11-16 20:22:08 +08:00
  • a4c0c6b400
    cache converted name (#3736) alresvor 2020-11-16 15:16:15 +08:00
  • a9f54d53fb Don't preload when there are any error happened Jinzhu 2020-11-16 12:23:13 +08:00
  • c1bb8e4551 Should not display the record not found error when using FirstOrXXX, close #3748 Jinzhu 2020-11-16 11:20:13 +08:00
  • a2d8f1b2c8 Update Leonid Bugaev 2020-11-12 21:30:01 +03:00
  • b7223e74ff
    cache converted name alresvor 2020-11-11 02:27:13 +08:00
  • 1e241aa645 Reduce GC alloc Jinzhu 2020-11-10 18:38:24 +08:00
  • 5696a223eb Select all fields in SQL queries avoiding the SELECT * FROM Luis Gómez 2020-11-09 14:46:14 -05:00
  • 74bd4abbd2 Select all fields in sql queries avoiding SELECT * FROM Luis Gómez 2020-11-08 17:53:56 -05:00
  • 72859db7a8 Select all fields in sql queries avoiding SELECT * FROM Luis Gómez 2020-11-08 15:25:57 -05:00
  • 832abda7a4
    refactor: simplify the writing instead of using struct literal (#3728) LeoZhan 2020-11-08 09:41:43 +08:00
  • 4bbbb6f242 Select all fields in SQL queries avoiding the SELECT * FROM Luis Gómez 2020-11-07 18:38:25 -05:00
  • 680d77dafc refactor: simplify the writing instead of using struct literal LeoZhan 2020-11-07 13:26:18 +08:00
  • 85e9f66d26 Fix create index for other database/schema, close #3698 v1.20.6 Jinzhu 2020-11-05 11:43:21 +08:00
  • fcf2ab6c0e Add deleted_at check when soft deleting, fix #3720 Jinzhu 2020-11-05 11:20:08 +08:00
  • 560d303e71 Fix Scan with soft delete, close #3712 Jinzhu 2020-11-04 11:03:22 +08:00
  • 4b91437c88 Treat partially zero compound foreign keys as an unset association Evan Owen 2020-11-02 19:04:55 -08:00
  • c915471169 Support Expression for OrderBy clause Jinzhu 2020-11-03 10:30:05 +08:00
  • 57b033e2dd
    Marshalling zero valued Deleted at to nullhttps://github.com/go-gorm/gorm/issues/3693 (#3695) Amit Basuri 2020-11-02 07:33:39 +05:30
  • 0c71c43a2c
    Merge branch 'master' into master Amit Basuri 2020-10-30 17:20:00 +05:30
  • 3ebdcbdb18 Marshal invalid DeletedAt as null, fix #3693 Jinzhu 2020-10-30 19:08:20 +08:00
  • 36bc5ef897 Marshalling zero valued Deleted at to nullhttps://github.com/go-gorm/gorm/issues/3693 Amit Basuri 2020-10-30 15:56:29 +05:30
  • a8141b6cc9 Fix DeletedAt marshal and unmarshal, close #3693 Jinzhu 2020-10-30 18:15:07 +08:00
  • 96758ec560 Added func SumExpr to expr Daniel Hammerschmid 2020-10-30 09:31:08 +01:00
  • 4009ec5816 Fix call hook methods when updating with struct Jinzhu 2020-10-27 18:14:36 +08:00
  • d011ebe7af Fix clone statement for Unscoped, UpdatingColumn, close #3681 Jinzhu 2020-10-26 10:17:25 +08:00
  • b901cecfec New 新增参数名称修正、规范 张奇峰 2020-10-24 12:20:13 +08:00
  • 66aa3c7b72 提交被遗漏的部分 张奇峰 2020-10-24 11:14:57 +08:00
  • 7e2c74d894 对 gorm 自带日志进行了加强,允许通过New函数修改默认的日志格式,开发者快速集成到自己的项目之后,可随意对日志拦截、二次处理. 张奇峰 2020-10-24 00:13:26 +08:00
  • bb35fc62bd 对 gorm 自带日志进行了加强,允许通过New函数修改默认的日志格式,允许开发者快速集成到自己的项目之后,相关日志的拦截、重写更加简单. 张奇峰 2020-10-23 23:03:12 +08:00
  • f982133c16
    Merge pull request #1 from go-gorm/master qifengzhang007 2020-10-23 22:47:01 +08:00
  • cb591a7129 Fix panic when using FirstOrCreate with soft delete, close #3671 Jinzhu 2020-10-23 18:40:05 +08:00
  • dd92f8bdc0 Allow create table for other database/schema #3640 Jinzhu 2020-10-23 11:01:45 +08:00
  • db2630cb3a Fix data race problem when using Scan, close #3662 v1.20.5 Jinzhu 2020-10-22 17:32:39 +08:00
  • 0aef8acc11 Add smart auto migrate tests Jinzhu 2020-10-22 14:00:10 +08:00
  • 05b3693b36 gorm v2 默认的logger格式重写微调 张奇峰 2020-10-22 15:05:10 +08:00
  • 6d90d09cb8
    Recorder追踪函数trace在finish_api文件358行scan函数所在的371行被调用时,BeginAt 没有赋值,默认值0001-0:0:0导致追踪日志显示的sql耗时无限大. (#3657) qifengzhang007 2020-10-22 14:09:09 +08:00
  • 7571baad25 Add smart auto migrate tests Jinzhu 2020-10-22 14:00:10 +08:00
  • 231aba53c5 Fix count with order by Jinzhu 2020-10-22 11:28:43 +08:00
  • 5df5703f88 Recorder追踪函数trace在finish_api文件358行scan函数所在的371行被调用时,BeginAt 没有赋值,默认值0001-0:0:0导致追踪日志显示的sql耗时无限大. 张奇峰 2020-10-22 10:39:23 +08:00
  • 5fee5b1b24 Add option tag support for index Jinzhu 2020-10-21 20:15:49 +08:00
  • 635dcc9ad4
    add gorm ColumnType interface, remove sql one (#3647) Michelle 2020-10-21 12:35:33 +02:00
  • bdb30da0a7 Fix copy lock for prepared statement, close #3642, #3607 v1.20.4 Jinzhu 2020-10-21 15:47:46 +08:00
  • c8a16ad75f Fix Count with order by for PostgreSQL Jason Lee 2020-10-21 00:32:42 +08:00
  • 9ff9be09c1 Add Count test with order by scope Jason Lee 2020-10-20 23:20:10 +08:00
  • 33a11767ea Upgrade test go.mod dependencies v1.20.3 Jinzhu 2020-10-20 19:13:15 +08:00
  • 9b2181199d Fix soft delete with OrCondition, close #3627 Jinzhu 2020-10-19 14:49:42 +08:00
  • 9dbef26feb Fix feature request label Jinzhu 2020-10-19 11:49:03 +08:00
  • 5731e632db Merge branch 'tebrizetayi-null-in-logger' Jinzhu 2020-10-19 11:04:35 +08:00
  • a1ea1713b0 Fix log Stringer Jinzhu 2020-10-19 11:04:18 +08:00
  • 999e7cb82c add gorm ColumnType interface, remove sql one Michelle Laurenti 2020-10-18 17:02:57 +02:00
  • d825554307 nil point transfer '<nil>' not transfer NULL #3604 TABRIZ ATAYI 2020-10-18 00:05:43 +02:00
  • 16f26b7f9f Remove error word from info logs *40140 azavodovskyy 2020-10-13 10:47:47 +03:00
  • 08ecef8e0b Fix NamedArguments with nested struct, close #3596 Jinzhu 2020-10-13 15:32:25 +08:00
  • 689d6e2331 Fix DeletedAt marshalling, close #3598 Jinzhu 2020-10-13 14:12:03 +08:00
  • d958737cd0 feat(Model) : add JSON formatter in gorm Model Akecel 2020-10-11 12:31:04 +02:00
  • 063b1ca0c4 Refactor SlowSQL log Jinzhu 2020-10-10 10:56:00 +08:00
  • 3d846957cd Compatible with tag notNull Jinzhu 2020-10-09 17:39:35 +08:00
  • 7faf1ca80f Fix Select with AS, close #3581, #3567 Jinzhu 2020-10-09 11:52:12 +08:00
  • d1187f29d3
    add test. laixintao 2020-10-08 01:18:17 +08:00
  • 514915f4de
    bugfix: Select can't handle AS statement. laixintao 2020-10-08 00:37:37 +08:00
  • d21e8391dc Added support Tabler interface for cached schemas Alexandr Kozlenkov 2020-10-06 11:26:36 +03:00
  • b2fdc25f73
    Merge branch 'master' into patch-oracle Steve Fan 2020-10-03 23:15:42 +08:00
  • dbc6b34dce Add detailed error information when missing table name Jinzhu 2020-09-29 15:42:58 +08:00
  • 81818b1284 add a name generator util func to replace fmt.Sprintf 0x2d3c 2020-09-28 21:26:43 +08:00
  • 698648a5fd add OpenD test godcong 2020-09-28 14:08:20 +08:00
  • 3fafe0ea6d add function OpenD godcong 2020-09-28 13:55:05 +08:00
  • 9bc488a6d4 add type ConfigOption godcong 2020-09-28 12:48:46 +08:00
  • a2faa41cbe Refactor NamingStrategy, close #3540 Jinzhu 2020-09-28 10:55:27 +08:00