Commit Graph

  • 38721924d0 Add support for Go modules Jonathan Ingram 2019-02-27 15:35:46 +11:00
  • 1936549a66
    use non-default foreign key in example Apurva Chitnis 2019-02-21 11:27:58 +00:00
  • 46d24b77a4
    consistent ordering of structs in Belongs To docs Apurva Chitnis 2019-02-21 11:19:00 +00:00
  • fca9c8f327 create table add column comment cuihao 2019-02-19 17:06:32 +08:00
  • 24e6e77199
    error log show trace file kuangzhiqiang 2019-02-18 20:54:58 +08:00
  • 991b3cb34e fix:create sql with redundant default value jiyalei 2019-02-18 20:43:50 +08:00
  • 013102194f
    Merge branch 'master' into master Matt Schiros 2019-02-12 10:50:04 -08:00
  • 906799fef2 Better log output for uint* Jinzhu 2019-02-10 15:39:40 +08:00
  • 8494ecdc98 Better log output int8, int, int16, int32, int64, float32, float64, bool. (#2258) aixiaoxiang 2019-02-10 15:37:39 +08:00
  • 917edfbc32
    Merge branch 'master' into feature/go-modules Satoshi Inoue 2019-02-07 13:51:16 +09:00
  • 05612d3173 not to quote int, float and bool value in query log zaneli 2019-02-06 17:05:47 +09:00
  • 5d0a0e8700 go modules Satoshi Inoue 2019-02-01 19:47:36 +09:00
  • 0c2a6d1b1c Better log output bool axx 2019-01-26 11:54:03 +08:00
  • 44e41c228d 1:many fix Matt Schiros 2019-01-18 14:08:48 -08:00
  • b705b0ecbb moving the check higher up in the if-blocks so it catches all the cases for both types Matt Schiros 2019-01-18 11:49:16 -08:00
  • d69551bd39 adding arbitrary join conditons for 1:many as well Matt Schiros 2019-01-18 11:11:48 -08:00
  • fb6e78ff13 add mysql insert modifiers Ali 2019-01-18 16:13:24 +02:00
  • e355abe5e3 formatting cleanup Matt Schiros 2019-01-17 12:18:41 -08:00
  • 6ecce561e6 added arbitrary join conditions as a tag option for many2many relationships Matt Schiros 2019-01-17 11:57:22 -08:00
  • e3aaf360a6 Better log output int, int16, int32, int64, int8, float32, float64. axx 2019-01-11 20:06:02 +08:00
  • 6e49030598
    Merge branch 'master' into master Jinzhu 2019-01-02 21:41:40 +08:00
  • cdce5f5e83
    Merge branch 'master' into master Jinzhu 2019-01-02 21:33:17 +08:00
  • 9f1a7f5351 optimize getColumnAsArray (#2196) 蜻蜓特派员 2019-01-02 21:32:08 +08:00
  • 8316f94b72 Fix Panic in test scenerio (#2131) Brent Hughes 2019-01-02 07:28:46 -06:00
  • a6382da485 Do not set CreatedAt if blank during Save (#2207) Edgar Fournival 2019-01-02 14:28:02 +01:00
  • e2cfd6be3b LintFix: Make receiver name of structField consistent (#2164) David Zhang 2019-01-02 21:27:17 +08:00
  • ac6c89ec0c search不需要再clone,dbClone内的search已经是一个全新的了 (#2179) 李鹏 2019-01-02 21:25:37 +08:00
  • 447d578628 amended comments in error.go for clarity and grammar; for more polish when using IDEs (e.g. VSCODE) that show comments as help text (#2182) Zed 2019-01-02 21:23:43 +08:00
  • 136c24cc57
    Merge branch 'master' into master Jinzhu 2019-01-02 21:18:37 +08:00
  • 3793d660cd
    Merge branch 'master' into master kuangzhiqiang 2018-12-31 18:21:40 +08:00
  • e931002529 Add BeginTx for parity with sql.DB.BeginTx Tyler Stillwater 2018-12-18 13:33:49 -07:00
  • f250bf41d2
    Merge branch 'master' into master 蜻蜓特派员 2018-12-14 14:51:30 +08:00
  • 1ec494d4c0
    Merge branch 'master' into receiver-name Jinzhu 2018-12-13 21:12:23 +08:00
  • 5ad6f621e6 logMode codes more readable (#2216) Sai 2018-12-13 22:04:51 +09:00
  • 615139b853 making test friendly with all dialects Rob Rodriguez 2018-12-10 18:23:23 -08:00
  • 4ef2a436f3 removing extraneous dependancy Rob Rodriguez 2018-12-10 17:54:54 -08:00
  • ca1c53917d changing encoder field type to common sql TEXT Rob Rodriguez 2018-12-10 17:52:45 -08:00
  • 2cc2a1555d fixing issues that broke tests Rob Rodriguez 2018-12-10 17:43:50 -08:00
  • 25674faa7d fixing tests Rob Rodriguez 2018-12-10 16:22:42 -08:00
  • a4990ef7fd removing project files Rob Rodriguez 2018-12-10 16:14:17 -08:00
  • 17a2b1f341 removing scope from passing Rob Rodriguez 2018-12-10 16:09:52 -08:00
  • 51de8ca836 adding final with tests Rob Rodriguez 2018-12-10 16:06:56 -08:00
  • 89ac376a2f update Rob Rodriguez 2018-12-10 11:44:06 -08:00
  • 7c725dc9f1 logMode codes more readable sairoutine 2018-12-10 00:51:28 +09:00
  • 7d07b4afe8
    Merge pull request #1 from jinzhu/master kuangzhiqiang 2018-12-09 12:32:33 +08:00
  • 227abeec4e
    error log trace file kuangzhiqiang 2018-12-09 12:13:16 +08:00
  • 7b9c9e4706
    Merge branch 'master' into master Tung Vu 2018-12-08 12:16:42 +07:00
  • acc7f1e7d4 Do not set CreatedAt if blank during Save Edgar Fournival 2018-12-06 14:03:19 +01:00
  • e06d4432fb optimize getColumnAsArray dragonflylee 2018-11-29 12:55:22 +08:00
  • e8ec89521a
    Update README.md EricZhou 2018-11-26 16:02:02 +08:00
  • 859ebcfaa6
    Update model_struct.go hot1232 2018-11-20 18:05:26 +08:00
  • 8c8a9c04a6 amended comments in error.go for clarity and grammar; for more polish when using IDEs (e.g. VSCODE) that show comments as help text Zed Tan 2018-11-17 16:21:16 +08:00
  • 4c79ac8196 search不需要再clone,dbClone内的search已经是一个全新的了 lpxxn 2018-11-15 11:59:33 +08:00
  • b9230ed3fd Fix copyIn bug fwhez 2018-11-12 14:32:10 +08:00
  • 14df8e1022 Improve code quality fwhez 2018-11-12 14:22:33 +08:00
  • fb7768f316 Fix bug 'table user, animal not found' fwhez 2018-11-12 14:17:56 +08:00
  • acd21ce2ab
    Merge pull request #1 from fwhezfwhez/res fthandsome 2018-11-12 13:28:12 +08:00
  • 3d8e6f2835 Remove raw sqls and use orm instead fwhez 2018-11-12 13:25:36 +08:00
  • 09318cf444 Add CopyIn for postgres dialect fwhez 2018-11-12 12:44:09 +08:00
  • 5a7fa89670 Change s to sf David Zhang 2018-11-12 11:19:30 +08:00
  • 28b35dae2a Improve code quality fwhez 2018-11-12 11:12:32 +08:00
  • 300b6d385c Impove code quality fwhez 2018-11-12 11:10:47 +08:00
  • 8355eb2fc2 Add clean-up for testcase TestDB_CopyIn fwhez 2018-11-12 10:43:55 +08:00
  • 432181e1f0 Well Format the changed file fwhez 2018-11-12 10:36:51 +08:00
  • d9161ec948 Use offical test DB instance fwhez 2018-11-12 10:34:20 +08:00
  • 56bb76c687 New feature 'CopyIn for postgres' (#2176) fwhez 2018-11-12 10:23:30 +08:00
  • 17daec0782 Delete ide conf fwhez 2018-11-12 10:19:02 +08:00
  • 2445b0ee54 * put testcase into main_test.go fwhez 2018-11-12 10:10:31 +08:00
  • 0fa79f99d9 * Fullfill testcase for 'CopyIn()' fwhez 2018-11-12 09:46:15 +08:00
  • 16b210d1bd + add CopyIn() method for gorm.DB fwhez 2018-11-09 18:16:36 +08:00
  • 69e61e3e7f Make receiver name of structField consistent David Zhang 2018-11-04 22:41:58 +08:00
  • d7e23b1f6c
    Merge branch 'master' into patch-1 Jinzhu 2018-11-03 22:15:33 +08:00
  • 472c70caa4 Check valuer interface before scan value (#2155) Jun Jie Nan 2018-11-03 22:14:39 +08:00
  • 1750598501
    Merge branch 'master' into master Jinzhu 2018-11-03 22:12:28 +08:00
  • 68f5d25d64 simplify cases of strings.Index with strings.Contains (#2162) teresy 2018-11-03 09:56:27 -04:00
  • 50c61291de add comment (#2163) RikiyaFujii 2018-11-03 22:55:52 +09:00
  • 54876ce965
    Merge branch 'master' into master Jinzhu 2018-11-03 21:47:44 +08:00
  • 5929100dba
    Merge branch 'master' into feature/rikiya RikiyaFujii 2018-11-03 21:17:55 +09:00
  • e4e4780ed6 typo RikiyaFujii 2018-11-03 21:12:34 +09:00
  • bf3e312343 add comment RikiyaFujii 2018-11-03 21:08:48 +09:00
  • 58544b82c2 opt format comment niuyufu 2018-11-03 13:37:05 +08:00
  • 800026133d simplify cases of strings.Index with strings.Contains teresy 2018-11-02 17:57:00 -04:00
  • 2d420a6dfd Log adds context features niuyufu 2018-11-03 01:53:47 +08:00
  • de871c6ea3 Added SetArg and Arg methods to DB Craig 2018-10-29 09:45:27 +02:00
  • 7e58dae6e7 DB.Arg and DB.SetArg Craig 2018-10-28 13:08:50 +02:00
  • ac0dd91bdc Check valuer interface before scan value JUN JIE NAN 2018-10-28 00:34:15 +08:00
  • eaffac2625
    add an override on the DB instance instead of using the global NowFunc. Ruben de Vries 2018-10-22 17:39:03 +02:00
  • 1ab1d5892e Fixed: rows affected when get row cuiweixie 2018-10-23 11:09:47 +08:00
  • f7da25b1ac Fix for key qAison 2018-10-12 16:29:31 +08:00
  • fa104e4300 Fix: Select and Omit operations are invalid qAison 2018-10-12 16:14:39 +08:00
  • 6ad5ab2fa6
    Fix Panic in test scenerio Brent Hughes 2018-10-11 15:47:52 -05:00
  • 85ba776e65
    Don't set primary key's HasDefaultValue to true Hylke Visser 2018-10-10 14:46:13 +02:00
  • eaece32546 Add RollbackUnlessCommitted() Adam S Levy 2018-10-09 11:10:37 -08:00
  • 742154be9a rewrite if-else chain as switch statement (#2121) Iskander (Alex) Sharipov 2018-10-07 03:49:37 +03:00
  • b296778a5a
    Merge branch 'master' into master Tung Vu 2018-10-05 10:46:32 +07:00
  • 0d4c14ae83 rewrite if-else chain as switch statement Iskander Sharipov 2018-10-01 12:15:51 +03:00
  • b74a9a8699 set MaxIdleConns and MaxOpenConns MaximMinaev 2018-09-29 01:13:48 +03:00
  • f62781cad0 add UseIndex API Yu Changhong 2018-09-28 22:56:28 +08:00
  • b13d48ef16
    Merge 1ab3bc5316bb90ef9286092e57edf1c160bdde4a into f6260a00852946a10a57e8bb9f505f19bc9389b7 Andrey Nehaychik 2018-09-27 09:20:37 +00:00
  • 1ab3bc5316 Use more correct code styleguide Andrey Nehaychik 2018-09-27 12:11:33 +03:00