Commit Graph

  • 2061f6a012
    skip preloading nil fields Jake Burkhead 2016-09-14 13:31:58 -07:00
  • 467e50e893
    Executed go fmt to fix formatting Thomas Boerger 2016-09-13 11:49:47 +02:00
  • f331b90c04
    Integrated tidb dialect Thomas Boerger 2016-09-13 11:18:12 +02:00
  • 041cd3dd31 Fix scan ignored fields, close #1117 Jinzhu 2016-09-13 09:29:36 +08:00
  • 3425c1d38d Set PrimaryField IsBlank to false after read from returning value Jinzhu 2016-09-13 08:24:29 +08:00
  • 6732a50dfb Get Dialect of DB Jinzhu 2016-09-13 07:41:42 +08:00
  • a8cecf2b8e
    Add DialectName to database handle Thomas Boerger 2016-09-12 18:45:36 +02:00
  • 02f6ae3c4e If failed to update current record with Save, try to create a new one Jinzhu 2016-09-07 21:54:19 +08:00
  • bdc7fac25d
    Skip foreign key creation on SQLite3 Thomas Boerger 2016-09-07 14:22:28 +02:00
  • 446ce99a42 Support set prefix for embedded struct Jinzhu 2016-09-05 22:26:57 +08:00
  • fad7c3f662 Deduplicate ids when preloading. Omit zero-value primary keys from preloading. zardak 2016-07-29 16:17:54 +03:00
  • f26fa242cc Support specify GORM tag setting inside scanner Jinzhu 2016-08-25 17:59:26 +08:00
  • 7fcc575363 Update GORM guides Jinzhu 2016-08-16 16:59:30 +08:00
  • 902d0a479e Merge pull request #1158 from Niondir/patch-1 Jinzhu 2016-08-16 16:57:26 +08:00
  • 47700ae2d2 Update models.md Tobias Kaupat 2016-08-16 10:48:46 +02:00
  • c6379bc24b Update GORM guides Jinzhu 2016-08-16 16:38:53 +08:00
  • 35a2a004d8 Strict select argument check for Count Jinzhu 2016-08-15 21:28:07 +08:00
  • 2f27f0f27f Fix TestUpdateDecodeVirtualAttributes Jinzhu 2016-08-14 16:10:30 +08:00
  • fb09befb9b Adds processing of ignored fields on Update elgris 2016-07-12 10:10:18 +03:00
  • 47f4915cfc Merge 3c01fe791514d7064791a17d8b067106866d1e2f into 34e75afb42007629e18aea20ed6722f151e62553 elgris 2016-08-14 07:17:17 +00:00
  • 34e75afb42 Support specify count select argument Jinzhu 2016-08-14 15:15:09 +08:00
  • 8f0f5df8c6 Don't set auto increment primary key's HasDefaultValue to true Jinzhu 2016-08-13 21:46:49 +08:00
  • efbdcb4574 Merge 10c8478254ca94645b136d6df8d1ff8b63678adc into 294eb58fc2d9ff2e493b4b95033614df8fc798ff pjebs 2016-08-13 13:23:54 +00:00
  • 294eb58fc2 Merge branch 'GhostRussia-fix_join_with_same_fields' Jinzhu 2016-08-13 21:23:25 +08:00
  • fde205f758 Refactor joining multiple tables with the same fields Jinzhu 2016-08-13 21:23:18 +08:00
  • ccb35db934 Fix failing sqlite3 tests due to db connection not being closed zardak 2016-08-07 13:00:06 +03:00
  • 084968cc0a Fixing go get error Nick Sarbicki 2016-07-16 14:14:46 +01:00
  • 9cdda4e8ee Expose current database name API Jinzhu 2016-07-11 21:37:44 +08:00
  • 546069e74c Add primary key check before delete Dan Hardman 2016-08-12 11:23:10 +01:00
  • 7afe504a13 Find: order by primary key by default Luc Scieux 2016-08-11 18:00:34 +02:00
  • dda88dd08c Merge pull request #1140 from zardak/fix-tests Jinzhu 2016-08-11 10:59:00 +08:00
  • e8c14bd1b3 Fixed a bug when joining multiple tables with the same fields and where on the same field. Vladislav Fursov 2016-08-09 14:28:43 +09:00
  • 10c8478254 Allow disabling of automatic Ping pjebs 2016-08-08 14:54:40 +10:00
  • bcff1df589 Fix failing sqlite3 tests due to db connection not being closed zardak 2016-08-07 13:00:06 +03:00
  • 5078631682 Fix bug #1138 JW 2016-08-07 00:38:50 +02:00
  • 2ff17d65e4 Remove looping when saving an association slice, to not repeat the updates Jason Seriff 2016-08-05 15:49:41 -05:00
  • 30ff208d6e Merge pull request #1134 from ovr/patch-1 Jinzhu 2016-08-04 20:47:06 +08:00
  • 96e1033335 Fix typos ☃ Dmitry (◕ᴥ◕) 2016-08-01 20:48:08 +09:00
  • a646b13548 Merge pull request #1119 from NDevox/master Jinzhu 2016-07-20 08:36:53 +09:00
  • ba70f12ea6 Merge pull request #1122 from jeffbmartinez/gh-pages-add-close Jinzhu 2016-07-20 08:36:16 +09:00
  • f57d7f2d9b Add prefix support Vladislav Fursov 2016-07-19 18:38:08 +09:00
  • 915f2c5061 Add db.Close() examples to documentation jeff martinez 2016-07-18 14:03:08 -07:00
  • f159d05209 Support count distinct huydx 2016-07-18 16:43:19 +09:00
  • d7fa7d0859 Fixing go get error Nick Sarbicki 2016-07-16 14:14:46 +01:00
  • 21c676fc08 update URLs to new location Baiju Muthukadan 2016-07-14 23:05:37 +05:30
  • 3c01fe7915 Adds processing of ignored fields on Update elgris 2016-07-12 10:10:18 +03:00
  • b507cdf93d Expose current database name API Jinzhu 2016-07-11 21:37:44 +08:00
  • 613c065569 Merge branch 'RichardKnop-feature/fix-preload-duplicates' Jinzhu 2016-07-10 21:34:49 +08:00
  • ca46038cb4 Fix preload duplicates has many related objects Jinzhu 2016-07-10 21:34:37 +08:00
  • 24501a3c1a Fixed bug when preload duplicates has many related objects. Richard Knop 2016-07-09 18:51:38 +08:00
  • 9757e285ad
    concurrent preloads Jake Burkhead 2016-06-28 10:49:42 -07:00
  • 3324ab2063 Merge pull request #1075 from cdevienne/fix_autoincrement Jinzhu 2016-07-05 06:36:50 +08:00
  • 711e791bb5 Merge pull request #1101 from mex/patch-1 Jinzhu 2016-07-05 06:13:55 +08:00
  • fa52e545f7 Fix typo in primary key section of docs Michael Storgaard 2016-07-01 16:46:56 +02:00
  • 3601b19cbd Id -> ID li_xd 2016-06-30 18:27:52 +08:00
  • c1c4f9f86e Add ORDER BY sql expression support Jinzhu 2016-06-28 11:15:42 +08:00
  • 321d10b67b Fix broken tests for postgres Jinzhu 2016-06-24 07:48:03 +08:00
  • 12377105a0 Merge 977a60eb3f9fefaf414f0c0ed8d4fd2e888253ad into caa792644ce60fd7b429e0616afbdbccdf011be2 Jay Taylor 2016-06-23 13:48:38 +00:00
  • 977a60eb3f debugging Jay Taylor 2016-06-23 06:43:09 -07:00
  • 1485f4bce9 Use validated interface{} for limit/offset values to ensure values greater than max 32-bit integer are addressable, and in a backwards-compatible way. Jay Taylor 2016-06-20 20:13:33 -07:00
  • 328fe672c8 Test AUTO_INCREMENT only on postgres Christophe de Vienne 2016-06-20 16:00:38 +02:00
  • 608fd976c4 Fix auto_increment on postgres database. Christophe de Vienne 2016-06-20 15:00:19 +02:00
  • 78ebbb4a2a Merge 64bdb8a80875cf1889ce84fe2e7497f015df1c40 into caa792644ce60fd7b429e0616afbdbccdf011be2 Andrey Nering 2016-06-17 12:46:03 +00:00
  • caa792644c Include model value when preloading many2many relations to enable row query callbacks Jinzhu 2016-06-17 18:18:46 +08:00
  • 18917d1f3e Merge pull request #1028 from nkovacs/wercker Jinzhu 2016-06-16 18:29:11 +08:00
  • 6ef2a539bd Fix test Jinzhu 2016-06-16 18:17:56 +08:00
  • 61f50a429a Fix preload has one relations Jinzhu 2016-06-16 17:58:25 +08:00
  • 277b4e93b6 Merge pull request #1013 from girokon/m2m_preload_issue Jinzhu 2016-06-16 16:41:34 +08:00
  • cf3f9927ae Merge pull request #1072 from jinzhu/revert-1064-jay/limit-offset Jinzhu 2016-06-16 16:32:24 +08:00
  • f926dd9f9f Revert "Use int64 for limit/offset values to ensure values > 32-bit int are addressable." Jinzhu 2016-06-16 16:31:50 +08:00
  • 8117553fcb Merge pull request #1071 from thephred/multiple_indexes Jinzhu 2016-06-16 08:50:36 +08:00
  • 300edb5bca Merge pull request #1064 from jaytaylor/jay/limit-offset Jinzhu 2016-06-16 08:48:43 +08:00
  • e7f00bd2cd Add support for multiple indexes seperated by commas for issue #884 Michael Goff 2016-06-15 16:06:22 -07:00
  • 3836f5441e Added working syntax to ignore field Andy Ruland 2016-06-12 07:08:32 +04:00
  • 9b0fb2feb9 Use int64 for limit/offset values to ensure values greater than max 32-bit integer are addressable. Jay Taylor 2016-06-08 17:01:11 -07:00
  • bf0e236078 Fix get default value from blank primary field Jinzhu 2016-06-02 11:06:44 +08:00
  • f9223721cf Add PropagatedError field dusan-embroker 2016-06-01 21:02:16 +02:00
  • dca5e54f8b Merge pull request #1038 from RichardKnop/bugfix/preload-panic Jinzhu 2016-06-01 23:10:28 +08:00
  • 09427a07b2 Merge pull request #1052 from stroborobo/fix-polymorphic-preload Jinzhu 2016-06-01 22:51:20 +08:00
  • 2631d6745c Merge pull request #1046 from andreynering/sqlite-testing-windows Jinzhu 2016-06-01 22:43:58 +08:00
  • fcf8dd4e23 Add support for polymorphic preload Björn 2016-06-01 13:46:45 +02:00
  • 7248671c9a Allow run tests for SQLite on Windows Andrey Nering 2016-05-28 13:49:32 -03:00
  • 64bdb8a808 Add Oracle support Andrey Nering 2016-05-08 18:47:24 -03:00
  • 8dfcab0f7f Fixed an occurence of a panic while preloading non existent fields. Richard Knop 2016-05-24 00:54:51 +08:00
  • 27522453de Merge pull request #1031 from nkovacs/add-foreign-key-panic-fix Jinzhu 2016-05-22 19:10:33 +08:00
  • 7983fc6269 fix panic in AddForeignKey on mysql dialect Nikola Kovacs 2016-05-22 09:58:37 +02:00
  • 4c9c024939 Merge pull request #1029 from nkovacs/mysql-foreign-key-length-fix Jinzhu 2016-05-22 08:00:40 +08:00
  • 6fca4ec9fe Add wercker.yml with postgres and mysql tests Nikola Kovacs 2016-05-21 20:05:31 +02:00
  • 6eb73ae654 Fix too long foreign key names in mysql. Nikola Kovacs 2016-05-22 00:13:26 +02:00
  • 58ce6153e2 don't test AddForeignKey on sqlite Nikola Kovacs 2016-05-21 23:19:41 +02:00
  • ed9cfac496 add failing test for long foreign keys in mysql Nikola Kovacs 2016-05-21 19:12:02 +02:00
  • 50657fb5cf Fixing BOOL type to UNSIGNED in MySQL instances. Ben Guild 2016-05-21 14:17:50 +09:00
  • 173a2d44a8 Propagate error to the original DB dusan-embroker 2016-05-19 20:56:11 +02:00
  • 13ac0839c4 fix m2m nested preload Igor Noskov 2016-05-10 12:43:50 +06:00
  • a90a6ebd39 Merge 0ff3187ca582d7b919260761cb627cbaf2c2ff4f into 57c72125b3087e1ed02c16f23a1f381cde3aaf2c Igor Noskov 2016-05-10 07:33:51 +00:00
  • 0ff3187ca5 fix m2m preload Igor Noskov 2016-05-10 12:43:50 +06:00
  • 3fe2831f41 Merge 5810691ee9fef7360d85420d41fe8e214c3374a1 into 57c72125b3087e1ed02c16f23a1f381cde3aaf2c Richard Knop 2016-05-09 14:48:11 +00:00
  • 57c72125b3 Merge pull request #1001 from stroborobo/assoc-error Jinzhu 2016-05-09 22:47:58 +08:00
  • 20e4bc304e Merge f83842b48e0e3cc2480e987b76135087d3554d58 into 0fd2fd66d539b47e89b60afcf9f1799252da307b Seth Shelnutt 2016-05-09 14:43:41 +00:00
  • 0fd2fd66d5 Refactor handleHasManyPreload Jinzhu 2016-05-09 22:42:07 +08:00