Commit Graph

  • 31366f388f Remove uncessary method CallMethodWithErrorCheck for Scope Jinzhu 2016-01-17 16:14:14 +08:00
  • de73d30503 Refactor callbacks Jinzhu 2016-01-17 15:30:42 +08:00
  • 09f46f01b9 Refactor dialect Jinzhu 2016-01-16 22:01:04 +08:00
  • 8e2aaa92c9 Rename Callbacks to Callback Jinzhu 2016-01-16 21:55:00 +08:00
  • f1237e4fe9 Refactor Callback Jinzhu 2016-01-16 19:20:52 +08:00
  • dc23ae63bf Keep refactoring association mode Jinzhu 2016-01-16 12:18:04 +08:00
  • c84e787b1d Merge branch 'master' into v1.0_dev Jinzhu 2016-01-16 11:40:08 +08:00
  • 211ccf4ea6 Fix using pointer value as foreign key Jinzhu 2016-01-16 11:37:16 +08:00
  • 4351917c45 Don't panic with ToDbName Jinzhu 2016-01-16 09:40:13 +08:00
  • 72104c6bf0 Fixes querying with inline map when a value is nil James Kong 2016-01-15 16:38:56 -08:00
  • 67874f9232 Keep Refactoring Association Mode Jinzhu 2016-01-16 06:00:18 +08:00
  • 822e895d4d Refactor getColumnAsArray Jinzhu 2016-01-15 22:53:09 +08:00
  • 41870191b0 Refactor Association Mode Jinzhu 2016-01-15 22:14:21 +08:00
  • 8d716be896 Fix some go vet/lint reports Jinzhu 2016-01-15 21:03:35 +08:00
  • 551c1e0c20 Keep refactoring on Preload Jinzhu 2016-01-15 20:37:41 +08:00
  • 3326a4e69d Refactor Preload Jinzhu 2016-01-15 15:53:53 +08:00
  • 41620f3d6c Fix assign relations to duplicated pointer fields Jinzhu 2016-01-15 11:04:49 +08:00
  • 79c4fae34d Refactor handleManyToManyPreload Jinzhu 2016-01-15 10:08:22 +08:00
  • d9229c5a7b Extract method Scan from rows Jinzhu 2016-01-13 16:53:04 +08:00
  • bfd421f999 Add TestNestedManyToManyPreload3 Jinzhu 2016-01-13 10:11:31 +08:00
  • d53f5cf6dd Rename scope.Trace to trace Jinzhu 2016-01-13 14:58:30 +08:00
  • f0364a0fb5 Merge branch 'master' into v1.0_dev Jinzhu 2016-01-12 15:47:50 +08:00
  • 675283f0fe Testing UpdateDecodeVirtualAttributes Jinzhu 2016-01-12 15:47:47 +08:00
  • 341d047aa7 Rollback to old Unscoped API Jinzhu 2016-01-12 15:27:25 +08:00
  • 43e9035dad Fix Association Count with Soft Delete Jinzhu 2016-01-12 13:44:16 +08:00
  • 801a271d07 Fix Association Count Jinzhu 2016-01-12 12:16:22 +08:00
  • ee48d6986c Update README Jinzhu 2016-01-11 07:28:08 +08:00
  • f70de0bdff Generate more friendly names for table and columns Jinzhu 2016-01-10 22:56:22 +08:00
  • 5c57885d98 DeletedAt's type has to been *time.Time Jinzhu 2016-01-10 21:33:15 +08:00
  • f574429f5e Return pointer when Open Jinzhu 2016-01-10 21:26:55 +08:00
  • 84942c60b8 Include tag settings when clone a StructField Jinzhu 2016-01-08 09:02:01 +08:00
  • 2392e2a33e Merge pull request #788 from jcscottiii/fix_polymorphic_test Jinzhu 2016-01-06 23:57:18 +08:00
  • 195d5993b3 Fix polymorphic test James C. Scott 2016-01-06 10:34:42 -05:00
  • 2f7811c55f Merge pull request #787 from dolmen/patch-1 Jinzhu 2016-01-06 17:41:57 +08:00
  • 27df9104ed README: fix typo Olivier Mengué 2016-01-06 10:18:23 +01:00
  • 5e23d7013e Merge pull request #782 from fengjh/fixes-add-foreign-key-bug Jinzhu 2016-01-05 17:23:25 +08:00
  • c66995df3a Fixes wrong number of args for format in Sprintf call bug in addForeignKey function Hui 2016-01-05 17:02:47 +08:00
  • 3a9367612e Port changes made in PR #652 Jinzhu 2016-01-05 08:34:17 +08:00
  • e60acad62a include join table name in where conditions to avoid ambiguous column name Jinzhu 2016-01-05 08:05:45 +08:00
  • ec0aa10bf2 Fix set scanner to a Field Jinzhu 2016-01-04 21:49:04 +08:00
  • be45d8312e Create index automatically when create table Jinzhu 2016-01-04 19:22:42 +08:00
  • d1892d3177 Support poiner of Scanner Jinzhu 2016-01-04 18:40:06 +08:00
  • f330da219c Merge pull request #779 from shenli/master Jinzhu 2016-01-04 17:59:15 +08:00
  • 499b5b7615 scope: Catch error for db.Commit() shenli 2016-01-04 13:32:35 +08:00
  • 4c52351b3e Add more tests for belongs to relations with partial customized foreign keys Jinzhu 2016-01-04 12:29:57 +08:00
  • 8aa7b475d4 Add more tests for one to many relations with customized foreign keys Jinzhu 2016-01-04 12:21:35 +08:00
  • 28d1eb474b Add test case for one to one relation with customized foreign keys Jinzhu 2016-01-04 08:45:43 +08:00
  • d87a960248 Test many to many relation with customized column Jinzhu 2016-01-04 08:26:02 +08:00
  • caeb4040f2 Fix use []byte as condtions Jinzhu 2016-01-03 20:29:46 +08:00
  • d7237be63c Support poiner of time Jinzhu 2016-01-03 20:27:08 +08:00
  • 52ac75a29a Use []byte as condtions Jinzhu 2016-01-03 20:23:37 +08:00
  • 1b1dbc0fab Respect customized sql tag when create join table Jinzhu 2016-01-03 19:47:48 +08:00
  • b59eaf526e Set Error to Association when some error happend Jinzhu 2016-01-03 17:52:16 +08:00
  • 2e949b02ae Merge pull request #774 from jinzhu/get_model_struct Jinzhu 2016-01-03 17:23:23 +08:00
  • aa55bd3fd2 Add more tests for customized foreign keys for many2many relations Jinzhu 2016-01-03 17:20:24 +08:00
  • b907500a47 Add test for many2many relations with customized foreign keys Jinzhu 2016-01-03 16:18:51 +08:00
  • 0f5055471a Keep refactoring get model struct Jinzhu 2016-01-03 15:22:35 +08:00
  • f53af2a236 Don't preload if has any error Jinzhu 2016-01-03 14:21:21 +08:00
  • 8a0c77e5fc Fix all tests for GetModelStruct Jinzhu 2016-01-03 14:16:58 +08:00
  • 4bc06a21c1 Refactor GetModelStruct Jinzhu 2016-01-03 14:04:59 +08:00
  • 6a5a2dbc55 Refactor GetModelStruct Jinzhu 2016-01-03 11:11:30 +08:00
  • 4e45e6dc2d Use field.TagSettings Jinzhu 2016-01-03 10:00:18 +08:00
  • 19b85b1f17 Compatible with both gorm, sql tag Jinzhu 2016-01-03 09:52:27 +08:00
  • 5d2b9bfe34 Refactor GetModelStruct Jinzhu 2016-01-03 09:46:07 +08:00
  • 9455215e61 Add association tests for composite primary key Jinzhu 2015-12-31 10:55:12 +08:00
  • 934e97b018 Don't need NOT IN conditions when there are no primary keys found Jinzhu 2015-12-30 15:34:56 +08:00
  • 6b5d2e494f Merge e540893344764d4861229b31f1b3bc54ce71b7a9 into 9a63fb28bad5cfdb0f89e918ad063f45285f1064 Biju Kalissery 2015-12-29 02:25:20 +00:00
  • 9a63fb28ba Update README Jinzhu 2015-12-26 20:46:25 +08:00
  • 9776eea2a2 Update README Jinzhu 2015-12-26 20:02:31 +08:00
  • c087e6dcc6 Remove unnecessary saving SQL when Append new association Jinzhu 2015-12-26 19:49:31 +08:00
  • e8fe7c5e34 Update README for Association Mode Jinzhu 2015-12-26 17:13:41 +08:00
  • a563efdd27 Update association tests Jinzhu 2015-12-26 16:39:08 +08:00
  • 4c1f03fee3 Don't set foreign key to be null when delete with a wrong relation Jinzhu 2015-12-26 16:19:38 +08:00
  • 300b74f15f Refactor association Delete Jinzhu 2015-12-26 16:06:53 +08:00
  • e65f94b287 Fix association Append for polymorphic Jinzhu 2015-12-26 15:19:56 +08:00
  • c88960b9b0 Add more tests for TestHasOne Jinzhu 2015-12-26 14:23:18 +08:00
  • 9ed070d386 Fix tests on CI Jinzhu 2015-12-26 14:00:18 +08:00
  • c23185af54 Refactor association Delete Jinzhu 2015-12-26 00:23:17 +08:00
  • f6ea3afc8d Refactor association Replace Jinzhu 2015-12-25 22:59:01 +08:00
  • f13dcd8bc0 Refactor association Replace Jinzhu 2015-12-25 20:43:51 +08:00
  • 93b512be47 Refactor association Clear, Replace Jinzhu 2015-12-25 19:33:57 +08:00
  • 4719ee7b1f Add Replace support for has many associations Jinzhu 2015-12-25 19:08:10 +08:00
  • a00fb4db04 Add Delete support for has many associations Jinzhu 2015-12-25 18:42:06 +08:00
  • a00cb7432c Update BelongsTo test Jinzhu 2015-12-25 17:52:09 +08:00
  • 715d7951aa Test HasOne relations for normal foreign key or scanner Jinzhu 2015-12-25 17:36:47 +08:00
  • affb64b04b Add BelongsTo support for association Clear Jinzhu 2015-12-25 17:32:28 +08:00
  • c85f00bcd2 Add BelongsTo support for association Delete Jinzhu 2015-12-25 17:09:20 +08:00
  • d57867eb46 Make Replace support other associations Jinzhu 2015-12-25 15:49:41 +08:00
  • 0ce635cc67 Add Append support for other associations Jinzhu 2015-12-25 15:13:40 +08:00
  • 4677215ef4 Fix get type Name from scope Jinzhu 2015-12-25 11:50:27 +08:00
  • f8c3ad6af3 Format time first when testing Jinzhu 2015-12-25 11:24:21 +08:00
  • 4a821a5bef Merge pull request #768 from pwaller/patch-1 Jinzhu 2015-12-24 08:22:35 +08:00
  • 5ba59aec5f Give (*ModelStruct).TableName() a pointer receiver Peter Waller 2015-12-23 10:42:03 +00:00
  • 387c00d2b5 Merge branch 'master' of https://github.com/jinzhu/gorm Paolo Galeone 2015-12-21 13:41:46 +01:00
  • d209be3138 Merge pull request #767 from levinalex/patch-1 Jinzhu 2015-12-18 20:17:59 +08:00
  • 2f85c0e4d6 clean up wording in README Levin Alexander 2015-12-18 11:50:11 +01:00
  • e541ca5cdf Fix DropTableIfExists with string Jinzhu 2015-12-16 21:00:56 +08:00
  • 39e6f58111 There was still an issue with preloading and pointers. Richard Knop 2015-12-16 16:58:45 +08:00
  • c6a22c5096 Refact fix invalid zero value for Preload Jinzhu 2015-12-16 10:40:57 +08:00
  • 861c477a33 Test Preload won't panic when nothing found Jinzhu 2015-12-16 10:35:22 +08:00