Commit Graph

  • c5fbda3f6f Added tests Ali 2021-03-13 17:34:07 -05:00
  • a241b02ebf Added WithContext() and FromContext() Ali 2021-03-13 17:33:47 -05:00
  • facc69d70c Added new error: ErrDBNotFoundInContext Ali 2021-03-13 17:33:28 -05:00
  • 10ef50b606 for FieldSchema.LookUpField or column Alias Delimiter daheige 2021-03-13 17:16:32 +08:00
  • 731229a0f3 optimize MigrateColumn method for regexp daheige 2021-03-13 16:59:25 +08:00
  • b7d4fe1a34 Fix Scopes with Migrator, close #4145 Jinzhu 2021-03-11 10:29:52 +08:00
  • a89e185cd8 Fix double pointer for where conditions, close #4159 Jinzhu 2021-03-10 19:46:59 +08:00
  • 0bfe4264c0 Don't panic when using nil pointer, close #4168 Jinzhu 2021-03-10 19:32:56 +08:00
  • e99c16392f Clear scopes before invoke scopes methods Jinzhu 2021-03-08 19:21:09 +08:00
  • eb318e6fce chore: improve code quality (#4123) Shubhendra Singh Chauhan 2021-03-08 08:16:43 +05:30
  • 638827e8a1 Optimize parse constraint (#4153) heige 2021-03-08 10:21:33 +08:00
  • a547345d5c optimize value of reflection length (#4152) heige 2021-03-08 10:20:04 +08:00
  • c575a4e719 support to preload all children in multiple levels associations ruozhixian 2021-03-11 16:36:49 +08:00
  • 912360097a Fix Scopes with Migrator, close #4145 Jinzhu 2021-03-11 10:29:52 +08:00
  • 9fccb17d07 Fix double pointer for where conditions, close #4159 Jinzhu 2021-03-10 19:46:59 +08:00
  • 14b9bd163c Don't panic when using nil pointer, close #4168 Jinzhu 2021-03-10 19:32:56 +08:00
  • 678f240c30
    Update go.mod Sachin 2021-03-09 19:51:05 -08:00
  • abf9f11c35
    added .deepsource.toml file Shubhendra Singh Chauhan 2021-03-09 13:56:41 +05:30
  • f7d687826e
    Remove unnecessary use of slice shubhendra 2021-02-25 15:19:30 +05:30
  • 391d0460f5
    Combine multiple appends into a single call shubhendra 2021-02-25 15:19:28 +05:30
  • 675de6fc16 Clear scopes before invoke scopes methods v1.21.3 Jinzhu 2021-03-08 19:21:09 +08:00
  • 0348b1d3c1
    chore: improve code quality (#4123) Shubhendra Singh Chauhan 2021-03-08 08:16:43 +05:30
  • 02cb40531e
    Optimize parse constraint (#4153) heige 2021-03-08 10:21:33 +08:00
  • 221d0a0ec1
    optimize value of reflection length (#4152) heige 2021-03-08 10:20:04 +08:00
  • 0864f9bcec optimize match english letters and midline daheige 2021-03-07 16:48:23 +08:00
  • 539a44ac80 support named params in Select API (#4142) Ratan Phayade 2021-03-07 08:29:00 +05:30
  • c73771b619 invalid db error and value and invalid value length error (#4151) heige 2021-03-07 10:56:32 +08:00
  • 240290f14d optimize value of reflection length daheige 2021-03-07 11:05:40 +08:00
  • a3abb5fedf
    support named params in Select API (#4142) Ratan Phayade 2021-03-07 08:29:00 +05:30
  • bc347758e5
    for Config.cacheStore store PreparedStmtDB key (#4149) heige 2021-03-07 10:57:22 +08:00
  • 495ec4bd87
    invalid db error and value and invalid value length error (#4151) heige 2021-03-07 10:56:32 +08:00
  • 0896d15c23 invalid db error and value and invalid value length error daheige 2021-03-07 00:51:08 +08:00
  • 548df9a5f9 invalid db error for DB method daheige 2021-03-07 00:29:28 +08:00
  • b7c2775408 for Config.cacheStore store PreparedStmtDB key daheige 2021-03-07 00:04:04 +08:00
  • f5eeaaa97c
    Update go.mod Sachin 2021-03-05 18:58:02 -08:00
  • 81eb56c1df
    Update finisher_api.go Sachin 2021-03-05 18:56:49 -08:00
  • e30ba8dafd changes clause identifies and adds test ratanphayade 2021-03-05 22:46:24 +05:30
  • 5ad4e6ee98 adds support for named arguments in select ratanphayade 2021-03-05 20:16:10 +05:30
  • a948c84607 Revert "Revert "Don't override the from clauses, close #4129" close #4139" Jinzhu 2021-03-05 22:18:12 +08:00
  • d6c23586ae Revert "Don't override the from clauses, close #4129" close #4139 Jinzhu 2021-03-05 19:42:54 +08:00
  • 294625759c Fix after initialize db callback v1.21.2 Jinzhu 2021-03-05 14:12:55 +08:00
  • c2feb3c88d add config values abelseniorly 2021-03-04 22:39:05 +05:30
  • 1476b2f7d4 Fix apply config v1.21.1 Jinzhu 2021-03-04 20:37:39 +08:00
  • adf85d5b82
    change the method of initializing slice (#4097) Sivchari 2021-03-04 20:44:15 +09:00
  • 664755270d Don't override the from clauses, close #4129 v1.21.0 Jinzhu 2021-03-04 19:16:08 +08:00
  • 90476fea7a Fix Join with slice IN, close #4133 Jinzhu 2021-03-04 18:40:47 +08:00
  • 42999e9809 Fix overwrite preloading associations, close #4134 Jinzhu 2021-03-04 18:28:32 +08:00
  • 0157099576 Use functional options Jinzhu 2021-03-04 17:14:08 +08:00
  • 3694ef4a2c Fix get current table Jinzhu 2021-02-26 17:30:00 +08:00
  • eb9a704fda Fix update UpdatedAt when full saving associations, close #4115 Jinzhu 2021-02-26 17:11:25 +08:00
  • 189547f615 Fix new session with Begin, close #4120 Jinzhu 2021-02-26 16:43:43 +08:00
  • ddeb143eb9 Lazy call registered scopes Jinzhu 2021-02-25 22:01:59 +08:00
  • 6b7d18656d Lazy call registered scopes Jinzhu 2021-02-25 20:06:26 +08:00
  • 828e6b646b Lazy call registered scopes Jinzhu 2021-02-25 18:49:01 +08:00
  • de0f6fc49a
    Remove unnecessary use of slice shubhendra 2021-02-25 15:19:30 +05:30
  • e6895ad95e
    Clean up copied struct fields with type conversion shubhendra 2021-02-25 15:19:29 +05:30
  • ba69820281
    Combine multiple appends into a single call shubhendra 2021-02-25 15:19:28 +05:30
  • 940da051a7 Skip nested associations when create data with Select, close #4108 Jinzhu 2021-02-23 19:35:20 +08:00
  • def34ab5fb
    Add ActivatedAt for scheduling future events. Ralic Lo 2021-02-22 13:03:12 +08:00
  • 27235be199 change to initializing in var group sivchari 2021-02-19 11:52:53 +09:00
  • 2866dcf860 keep the association.go code in the var group sivchari 2021-02-18 15:02:08 +09:00
  • 0c07328fc2 keep the association.go code in the var group sivchari 2021-02-18 14:47:33 +09:00
  • 79225bfe48 Fix Omit/Select without Model value, close #4098 Jinzhu 2021-02-18 10:53:29 +08:00
  • 16bda61a03 change the method of initializing slice and fixed the length to be specified as 0 sivchari 2021-02-17 13:52:44 +09:00
  • 9e3805f78f change the method of initializing slice sivchari 2021-02-17 12:56:28 +09:00
  • 73d44a4f97 Fix create duplicated constraint, close #4090 Jinzhu 2021-02-16 08:39:04 +08:00
  • 92a2389450 Fix create duplicated constraint, close #4090 Jinzhu 2021-02-16 08:35:19 +08:00
  • 628a0ae707 Fix foreign key & reference with same name, close #4081 Jinzhu 2021-02-15 09:10:51 +08:00
  • 5744e29fbd
    Replacer interface for more flexible NamingStrategy (#4042) Joel Nordell 2021-02-13 18:16:24 -06:00
  • 8c0c82e887
    Remove the name cache from NamingStrategy. Joel Nordell 2021-02-10 10:55:28 -06:00
  • 1764c8ef8f feat: define short function name easy to use Harman 2021-02-11 00:13:00 +08:00
  • a13b7a6acb Fix OnConflict where order for postgres, close #4073 Jinzhu 2021-02-10 14:11:29 +08:00
  • 84ea3ec0cc Fix sub query argument order with multiple raw SQL Jinzhu 2021-02-09 18:56:13 +08:00
  • df24821896 Fix SubQuery for raw sql Jinzhu 2021-02-09 17:05:50 +08:00
  • 2ba612e805
    Add field tag to ignore migration (#4028) yrong1997 2021-02-09 16:03:02 +08:00
  • 8771f3c27c refactor migration tag yrong 2021-02-09 15:48:39 +08:00
  • 403967a34c
    Refactor NamingStrategy tests to add more assertions about how and when Replacers get called. Joel Nordell 2021-02-08 11:19:57 -06:00
  • 4d33b2f584
    Move sync.Map from global variable into member of NamingStrategy. Joel Nordell 2021-02-07 22:12:45 -06:00
  • 883c32e59a Support Unscoped when delete with selected associations, close #4062 Jinzhu 2021-02-07 14:36:27 +08:00
  • deff0594ee Save associations based on creatable/updatable permission, close #4056 Jinzhu 2021-02-07 14:24:11 +08:00
  • 4373aa01ab Don't call AfterFind hooks if no record found, close #4048 Jinzhu 2021-02-07 12:44:59 +08:00
  • bb153384d1 Switch driver.Valuer, fmt.Stringer order when format SQL Jinzhu 2021-02-07 11:18:09 +08:00
  • e80853e7f5
    optimization check for ParseCheckConstraints (#4063) heige 2021-02-07 10:12:13 +08:00
  • ef5ef18d4a
    recommended to use magic const strings (#4059) heige 2021-02-07 10:09:32 +08:00
  • a8ea0b177a feat: Optimize loop assignment daheige 2021-02-06 18:00:45 +08:00
  • b9a73c10db optimization check for ParseCheckConstraints daheige 2021-02-06 17:30:48 +08:00
  • 8fa7a19acb Preload fix, when condition has LIMIT clause use UNION sql not IN (...) junstyle 2021-02-06 12:39:00 +08:00
  • 4a1096bcff Fix null value with space yrong 2021-02-06 11:29:34 +08:00
  • 046bac776a recommended to use magic const strings daheige 2021-02-06 11:13:51 +08:00
  • f1aa4bb093 recommended to use magic const strings daheige 2021-02-06 11:13:51 +08:00
  • 95fff37f1a functional option for gorm Config and add OpenWithOption create *db.DB with ConfigOption daheige 2021-02-06 10:41:15 +08:00
  • 60fac30335 replace parser cached interface with dest interface sunyuanhua 2021-02-04 17:04:34 +08:00
  • 3d3208ed60 initialize config plugins Jinzhu 2021-02-03 16:27:49 +08:00
  • 96fe56218b
    Add NoLowerCase option to skip the snake_casing of names. Joel Nordell 2021-02-02 16:20:43 -06:00
  • 2abab3cf60
    Change NameReplacer to an interface, allowing custom Replacers. Joel Nordell 2021-02-02 16:15:14 -06:00
  • 7a55fef94c Add NewDB as a Shortcut Call Abdelaziz Elrashed 2021-02-02 11:55:38 +03:00
  • 8f37cb0195 Make has to be a const, close #4024 Jinzhu 2021-02-01 10:42:13 +08:00
  • db0cc4d60b Fix too long foreign key/checker names, close #4026 Jinzhu 2021-02-01 10:37:12 +08:00
  • 13076007f1 feat: rollback gofmt for scan.go daheige 2021-01-31 17:46:54 +08:00
  • 0df6b19a8d feat: gofmt code daheige 2021-01-31 17:31:04 +08:00