Commit Graph

  • 581a879bf1
    Added comments to existing methods Saurabh Thakre 2022-01-31 17:26:28 +05:30
  • f19b84d104 Fix github action Jinzhu 2022-01-30 22:32:34 +08:00
  • 8d293d44dd Fix docker-compose test env for Mac M1 Jinzhu 2022-01-30 22:00:56 +08:00
  • 8c3673286d
    preoload not allowd before count (#5023) Ning 2022-01-30 18:17:06 +08:00
  • c0bea447b9
    fix: omit not work when use join (#5034) li-jin-gou 2022-01-28 22:16:42 +08:00
  • f68e29b6dd fix: omit not work when use join kinggo 2022-01-28 21:45:12 +08:00
  • 98c4b78e4d Add Session Initialized option Jinzhu 2022-01-28 19:26:10 +08:00
  • cec0d32aec Support use clause.Expression as argument Jinzhu 2022-01-28 18:48:32 +08:00
  • 0535bd67ee add before find hook,we need split table with it dino.ma 2022-01-27 13:53:29 +08:00
  • 36a3fdd647 preoload not allowd before count ningfei 2022-01-24 15:32:53 +08:00
  • 0f5cbc42c6
    Fix typo Gilad Weiss 2022-01-23 10:50:56 +02:00
  • 87b53aec48 Merge remote-tracking branch 'origin/master' piyongcai 2022-01-22 21:57:42 +08:00
  • 0e25da906f finisher_app.go Add ExecRaw Method. it use Do no processing and execute the original sql piyongcai 2022-01-22 21:57:15 +08:00
  • 8c9667cc37
    Inherit clone flag (NewDB) on transaction creation Gilad Weiss 2022-01-20 19:04:34 +02:00
  • 061aea8d7e Update GormFieldValuer Jinzhu 2022-01-20 21:30:59 +08:00
  • 0ca42129fa Update context Jinzhu 2022-01-20 21:13:52 +08:00
  • 0d8c5264e9
    Merge branch 'go-gorm:master' into master piyongcai 2022-01-12 14:29:40 +08:00
  • e5894ca449
    chore(deps): bump gorm.io/driver/mysql from 1.2.1 to 1.2.3 in /tests (#4987) v1.22.5 dependabot[bot] 2022-01-12 13:11:57 +08:00
  • a0d6ff1fea
    time.Time, []byte type add alias support. (rebase master) (#4992) piyongcai 2022-01-12 13:11:40 +08:00
  • e5be7ba778 reformat piyongcai 2022-01-12 12:08:05 +08:00
  • c63a7453f3 time.Time, []byte type add alias support piyongcai 2022-01-12 12:04:08 +08:00
  • 87c444f952
    chore(deps): bump gorm.io/driver/mysql from 1.2.1 to 1.2.3 in /tests dependabot[bot] 2022-01-10 07:11:07 +00:00
  • eae73624ad Fix return failed to begin transaction error when failed to start a transaction Jinzhu 2022-01-07 10:04:35 +08:00
  • 0df42e9afc
    feat: add Connection to execute multiple commands in a single connection; (#4982) kinggo 2022-01-07 09:49:56 +08:00
  • f757b8fdc9
    fix: auto migration column order unpredictable (#4980) halfcrazy 2022-01-06 18:55:20 +08:00
  • f605175cf3 fix: auto migration column order unpredictable Yan Zhu 2022-01-05 17:04:02 +08:00
  • b47cf57f5e
    ci: add gofumpt check in reviewdog (#4973) kinggo 2022-01-06 15:02:53 +08:00
  • bf1508f3f0 feat: add Connection to execute multiple commands in a single connection; longlihale 2022-01-05 20:27:13 +08:00
  • 4dd2647967
    Merge pull request #4964 from liweitingwt/f_test_error kinggo 2021-12-31 14:25:04 +08:00
  • d6ab7c6f16 ci: add gofumpt check in reviewdog longlihale 2021-12-31 14:14:20 +08:00
  • f38c2267dd
    enable contextcheck linter Matthieu MOREL 2021-12-30 13:03:45 +01:00
  • 8dde09e0be
    fix: generate sql incorrect when use soft_delete and only one OR (#4969) kinggo 2021-12-30 11:47:14 +08:00
  • 9b193081ec fix: generate sql incorrect when use soft_delete and only one OR longlihale 2021-12-30 11:44:44 +08:00
  • 8846f34747 fix: generate sql incorrect when use soft_delete and only one OR longlihale 2021-12-30 11:36:59 +08:00
  • 45b287e674
    Update tests.yml Matthieu MOREL 2021-12-29 18:02:59 +01:00
  • d69be45dd2 fix: generate sql incorrect when use soft_delete and only one OR longlihale 2021-12-29 22:24:48 +08:00
  • 3e7e38830a revert piyongcai 2021-12-29 08:25:56 +08:00
  • 0eeb5b8925 revert piyongcai 2021-12-29 08:25:29 +08:00
  • 1172488ae3 optimize code block. piyongcai 2021-12-29 08:23:18 +08:00
  • 7b5c6a4526 []byte type alias first to determine len, then determine is slice element is byte piyongcai 2021-12-29 08:15:44 +08:00
  • b9667cb747 fix: fix the error handle in tests_test liweiting.wt 2021-12-28 18:22:17 +08:00
  • c460860d34
    Update utils.go systematiccaos 2021-12-27 12:30:50 +01:00
  • aef818e0f0
    enable revive linter Matthieu MOREL 2021-12-27 11:45:36 +01:00
  • d49308d779
    enable nilerr linter Matthieu MOREL 2021-12-27 10:52:41 +01:00
  • 21423b914f require lint before tests MOREL Matthieu 2021-12-27 08:26:52 +01:00
  • fff0a9b4d8
    Bump gorm.io/driver/mysql from 1.2.1 to 1.2.2 in /tests dependabot[bot] 2021-12-27 07:07:45 +00:00
  • e5c333b96b 1, time.Time, []byte type add alias support. 2, []byte alias type, fixed statement bind var parameter. piyongcai 2021-12-27 11:08:50 +08:00
  • 03919f36ce
    Merge branch 'go-gorm:master' into master piyongcai 2021-12-26 09:15:46 +08:00
  • 2c3fc2db28
    Fix: Where clauses with named arguments may cause generation of unintended queries (#4937) Emre Güllü 2021-12-21 14:50:00 +03:00
  • d1f83e584b
    Merge branch 'go-gorm:master' into master piyongcai 2021-12-19 16:21:22 +08:00
  • c6d6d8f130 Fix: Where clauses with named arguments may cause generation of unintended queries emregullu 2021-12-18 15:14:37 +03:00
  • 24026bf1fe
    modify unscoped judge (#4929) liweitingwt 2021-12-16 10:41:34 +08:00
  • cb6ffff60c
    Merge branch 'go-gorm:master' into master piyongcai 2021-12-16 07:59:41 +08:00
  • a780e2b236 Merge remote-tracking branch 'origin/master' liweiting.wt 2021-12-15 17:25:09 +08:00
  • 7a0ac76c9b modify unscoped judge liweiting 2021-12-13 20:46:46 +08:00
  • 483eee9b6b feat: ColumnType interface qqxhb 2021-12-15 13:28:56 +08:00
  • 819e3f9a2b modify unscoped judge liweiting.wt 2021-12-13 20:46:46 +08:00
  • af9010b4bc swap SQLite driver for tests glebarez 2021-12-12 14:03:36 +01:00
  • adf8f70f06 Upgrade go.mod Jinzhu 2021-12-10 17:50:19 +08:00
  • 380cc64ff5
    fix type alias AutoMigrate bug(Add Test Case) (#4888) piyongcai 2021-12-10 17:45:36 +08:00
  • 2a578d767f
    Use Golangci configuration file (#4896) Matthieu MOREL 2021-12-10 10:44:11 +01:00
  • 4271f60f68 Optimizing tag parsing wushu 2021-12-08 17:35:02 +08:00
  • 52103dd623 Remove redundant percision check for migrator wushu 2021-12-08 14:19:29 +08:00
  • e5bdd610c3
    fix: save not use soft_delete (#4897) kinggo 2021-12-08 13:58:06 +08:00
  • 59770f0cda fix: save not use soft_delete kinggo 2021-12-08 13:46:00 +08:00
  • d98390243a fix: save not use soft_delete kinggo 2021-12-08 13:31:20 +08:00
  • 530d6937c3
    Bump gorm.io/driver/mysql from 1.2.0 to 1.2.1 in /tests dependabot[bot] 2021-12-06 07:10:12 +00:00
  • df1cc7e544
    Bump github.com/jinzhu/now from 1.1.3 to 1.1.4 in /tests dependabot[bot] 2021-12-06 07:10:06 +00:00
  • 7f383863d4
    Bump github.com/jinzhu/now from 1.1.3 to 1.1.4 dependabot[bot] 2021-12-06 07:09:02 +00:00
  • 357c78c673 fix: save not use soft_delete kinggo 2021-12-03 17:36:22 +08:00
  • e78c92378b fix: Save not use soft_delete kinggo 2021-12-03 17:27:44 +08:00
  • a58a58c56f try to fix golangci-lint 13981712066 2021-12-03 16:50:08 +08:00
  • 97c7038b4f
    Use Golangci configuration file Matthieu MOREL 2021-12-03 09:34:29 +01:00
  • ede865ab7b Merge branch 'master' of https://github.com/piyongcai/gorm 13981712066 2021-12-03 16:04:48 +08:00
  • d6ddd0baf5 Add typealis test. 13981712066 2021-12-03 16:04:39 +08:00
  • ebe8c925d4
    Merge branch 'go-gorm:master' into master piyongcai 2021-12-02 11:33:07 +08:00
  • 300a23fc31 Check rows.Close error, close #4891 Jinzhu 2021-12-02 10:39:24 +08:00
  • 8627634959 Fix create associations with zero primary key, close #4890 Jinzhu 2021-12-02 10:20:16 +08:00
  • 9907473d98 fix type alias AutoMigrate bug. eg 13981712066 2021-12-01 17:13:08 +08:00
  • 97b3bdfa9c fix type alias AutoMigrate bug. eg 13981712066 2021-12-01 17:08:41 +08:00
  • 0c66383e6a feat(order): support call Order once to order by multi fields bestgopher 2021-11-30 21:44:10 +08:00
  • 3a3b82263a Fix auto migration always alert table, close #4198 v1.22.4 Jinzhu 2021-11-29 20:24:04 +08:00
  • d8a710cba2
    fix: count() when use group by and only find one record (#4885) kinggo 2021-11-29 20:14:23 +08:00
  • b20fce790e fix: count() when use group by and only find one record 李龙 2021-11-29 19:57:36 +08:00
  • 27e2753c9d Fix create duplicated value when updating nested has many relationship, close #4796 Jinzhu 2021-11-29 18:34:50 +08:00
  • 45e804dd3f Fix call valuer interface when using nil value Jinzhu 2021-11-29 16:19:06 +08:00
  • 92d5a959a0 Fix tests Jinzhu 2021-11-29 15:16:57 +08:00
  • 270e38c518 Fix duplicated error when Scan, close #4525 Jinzhu 2021-11-29 14:23:10 +08:00
  • 221337c5ac Merge remote-tracking branch 'origin/master' 李龙 2021-11-29 11:32:41 +08:00
  • cb6e71b35a fix: count() when use group by and only find one record 李龙 2021-11-29 11:31:57 +08:00
  • e1b4c066a8 Fix FullSaveAssociations, close #4874 Jinzhu 2021-11-29 11:02:32 +08:00
  • 9d5f315b6d
    feat: go code style adjust and optimize code for callbacks package (#4861) heige 2021-11-29 09:33:20 +08:00
  • fc5e8d21ac
    Merge branch 'go-gorm:master' into master kinggo 2021-11-28 17:36:03 +08:00
  • ae5bda7deb fix: count() when use group by and only find one record 李龙 2021-11-28 17:32:47 +08:00
  • 5d15e1a500 let gorm can scan protobuf struct without add an ignore tag ("-") manually Frankee.zhou 2021-11-27 15:17:39 +08:00
  • b90f112239 fix: count() when use group by and only find one record 李龙 2021-11-25 12:57:16 +08:00
  • edbcbe3126 Fixed limit and offset for subquery Gerhard Gruber 2021-11-23 15:04:56 +01:00
  • 30f2304e9d Do not order subquery if no limit or order is applied Gerhard Gruber 2021-11-23 14:51:30 +01:00
  • de609de5b3 order by for delete not supported Gerhard Gruber 2021-11-23 14:44:27 +01:00
  • a06ca0d4d6 order by for update not supported Gerhard Gruber 2021-11-23 14:36:56 +01:00