Commit Graph

  • 003bf8d080 Add gorm.Wrap to wrap an existing db connection with gorm. Joel 2014-11-11 00:33:08 -08:00
  • a405f08f3a Merge branch 'BugHert push origin master-fix-one-to-one-relation' Jinzhu 2014-11-12 10:25:43 +08:00
  • b1c2a22646 Remove unnecessary ToSnake Jinzhu 2014-11-12 10:23:51 +08:00
  • b32c5badd2 Refactor getInterfaceAsSql Jinzhu 2014-11-11 13:36:12 +08:00
  • 828bf5d5fd Fix can't update record with customized primary key Jinzhu 2014-11-11 11:46:21 +08:00
  • da3e74ba6f Add support for signed and unsigned integer types as primary key type Paolo Galeone 2014-10-22 17:33:13 +02:00
  • b261296b76 Merge branch 'galeone-master' Jinzhu 2014-11-11 13:36:48 +08:00
  • dcdbb72570 Refactor getInterfaceAsSql Jinzhu 2014-11-11 13:36:12 +08:00
  • aab0b28457 Fix can't update record with customized primary key Jinzhu 2014-11-11 11:46:21 +08:00
  • 010e7a90b3 Fix can't update record with customized primary key Jinzhu 2014-11-11 11:46:21 +08:00
  • d14e48cdd9 Add test to reproduce missing TableName function n.wagensonner 2014-11-07 20:16:37 +01:00
  • c041e53612 fix query generation for one-to-one relations deoxxa 2014-10-28 11:29:33 +11:00
  • 4c8e6a095a Merge remote-tracking branch 'upstream/master' Paolo Galeone 2014-10-29 13:46:41 +01:00
  • a29ac54e48 Limit condition should not be inherited by following queries Jinzhu 2014-10-28 17:18:11 +08:00
  • 48930b60eb Fix spelling error in README Jinzhu 2014-10-28 17:01:05 +08:00
  • c108cf022b Add support for signed and unsigned integer types as primary key type Paolo Galeone 2014-10-22 17:33:13 +02:00
  • 52ba1858c3 Merge pull request #247 from arianitu/master Jinzhu 2014-10-15 21:27:48 +08:00
  • 6c1ca7adb8 Include ignored columns in Fields(), it could be used as cache field Jinzhu 2014-10-14 00:06:41 +08:00
  • 716e682394 Update README.md arianitu 2014-10-11 21:40:10 -04:00
  • 5d0d2a8e98 Merge pull request #244 from rtfb/fix-ignored-field-bug Jinzhu 2014-10-10 08:34:32 +08:00
  • 67f71b2f86 Fix a bug with custom columns and ignored fields Vytautas Šaltenis 2014-10-10 00:05:15 +03:00
  • 0aaefebf4f Add support for custom column names Jinzhu 2014-10-07 22:33:57 +08:00
  • 5b5ee62d06 Merge pull request #241 from tstorch/if_to_switch Jinzhu 2014-10-07 21:56:04 +08:00
  • 41eeeeea7c Cheanged if to switch in scope.go Tristan Storch 2014-10-06 11:11:07 +02:00
  • 375f3ee260 Merge pull request #239 from tstorch/cleanup Jinzhu 2014-10-03 13:32:18 +08:00
  • 9bee4239d4 FieldValueByName does now only what it should Tristan Storch 2014-10-01 15:58:13 +02:00
  • e64961a4c0 Merge f1212ecd5881f958005941a7b14123ffb1f5683d into 591d4a4057f0e3bf0f2873db3f01f504504aee6e Tristan Storch 2014-09-30 12:08:46 +00:00
  • f1212ecd58 Readability update Tristan Storch 2014-09-30 14:02:51 +02:00
  • 591d4a4057 Merge pull request #235 from ehabit/patch-1 Jinzhu 2014-09-28 07:27:42 +08:00
  • bdadbb5c6f Fixed typo on line 196, changed works to work. ehabit 2014-09-27 15:35:18 -07:00
  • eb7ba964b2 Merge pull request #234 from tstorch/small_refactor Jinzhu 2014-09-26 21:56:39 +08:00
  • f771ee21da Minor Refactoring for readability Tristan Storch 2014-09-26 15:35:04 +02:00
  • 81874feef9 Merge branch 'thecaddy-master' Jinzhu 2014-09-19 21:51:06 +08:00
  • 5eeff5d38f Fix some errors for the mssql support pull request Jinzhu 2014-09-19 21:48:55 +08:00
  • a6b243a3e9 fix for bad rebase Joel Trost 2014-09-16 14:49:29 -07:00
  • 6b7d0879c5 Ran gofmt and removed panic statements Joel Trost 2014-09-16 08:32:35 -07:00
  • f79e1a2ef6 GORM support for MSSQL, passes all tests Joel Trost 2014-09-15 13:03:14 -07:00
  • 938c09e702 Merge pull request #222 from jaytaylor/readme-cleanup Jinzhu 2014-09-16 11:02:25 +08:00
  • 1c4339c2e9 Tabified code sample indentation. Jay Taylor 2014-09-15 17:59:04 -07:00
  • facd84deec Quote table name when order by primary key Jinzhu 2014-09-13 16:11:49 +08:00
  • 88858a942e Update README Jinzhu 2014-09-12 16:40:55 +08:00
  • 0f3a9a8d02 Support include struct type in the foreign key to avoid ambiguous Jinzhu 2014-09-08 11:19:05 +08:00
  • 04f645b6ab Merge cf471d38427ec4eca4e694b8bc617680f4da3b72 into 1ad419004fa8ae90145d4e3ff4fcb2629996b54b rbg 2014-09-07 21:38:28 +00:00
  • cf471d3842 This attempts to address a concern in issues #202 and #192. Robert B Gordon 2014-09-07 16:37:14 -05:00
  • 189a7ef561 Restored original commenting for 3 lines. Jay Taylor 2014-09-06 22:55:15 -07:00
  • 061d048bee Merge 5b88384bd06b3bb9e2273c8fd4d83aa8f025f7a8 into 1ad419004fa8ae90145d4e3ff4fcb2629996b54b rbg 2014-09-07 00:09:11 +00:00
  • 1ad419004f Merge pull request #220 from tschaub/patch-1 Jinzhu 2014-09-07 08:09:10 +08:00
  • 250de0376b README cleanup: Consistent comment prefixing //// for raw SQL example output. Jay Taylor 2014-09-06 15:55:42 -07:00
  • 5b88384bd0 Add update tag. Robert B Gordon 2014-09-06 01:09:39 -05:00
  • 09d3c5dff0 Match case from above Tim Schaub 2014-09-05 15:00:26 -06:00
  • 8ceabc7013 Merge eb8f806023f5a0f49cd48d8efda5563077a97d31 into 58ff12421092878c767c2a601dcb44ef95977fcb rbg 2014-09-05 20:07:53 +00:00
  • eb8f806023 add gorm field tag "update" Robert B Gordon 2014-09-05 15:05:01 -05:00
  • b12c6d78a3 ignore gorm.test Robert B Gordon 2014-09-05 14:02:54 -05:00
  • 58ff124210 Fix messages for remove, replace callbacks Jinzhu 2014-09-02 20:13:00 +08:00
  • 59846f0e9b Fix tests for association Jinzhu 2014-09-02 20:10:18 +08:00
  • 953c347ba7 Refactor Scope Jinzhu 2014-09-02 19:03:01 +08:00
  • 9c7ff3d211 Don't show duplicated replacing callback message Jinzhu 2014-09-01 17:32:11 +08:00
  • b6d934aff9 Improve HasColumn method, support embedded struct Jinzhu 2014-09-01 17:03:58 +08:00
  • 7862dace6b Don't panic if can't get address Jinzhu 2014-09-01 14:15:29 +08:00
  • 0b9218f1e5 Improve column->field map construction Vytautas Šaltenis 2014-08-30 20:41:20 +03:00
  • 204356b320 Update README Jinzhu 2014-08-30 23:24:09 +08:00
  • c6b1669c6a Fix tests for Scanner Jinzhu 2014-08-30 23:08:58 +08:00
  • 6271cf0e55 Fix tests for postgres Jinzhu 2014-08-30 22:39:28 +08:00
  • e9ecf9c1aa Fix HasTable tests Jinzhu 2014-08-29 17:12:12 +08:00
  • 471eda5a12 Panic if found duplicated column name Jinzhu 2014-08-28 19:14:58 +08:00
  • f984bc8515 Refact code Jinzhu 2014-08-28 18:53:27 +08:00
  • d806b7084f Pass anonymous struct tests Jinzhu 2014-08-28 18:25:05 +08:00
  • b2360c11da Add Fields for embedded struct Jinzhu 2014-08-28 17:21:43 +08:00
  • ecc23e4432 Merge pull request #211 from rbg/master Jinzhu 2014-08-29 22:58:35 +08:00
  • bc616fafbf Fix the HasTable test, for real. Robert B Gordon 2014-08-29 09:53:12 -05:00
  • 43be73504f Merge pull request #210 from rbg/master Jinzhu 2014-08-29 22:30:19 +08:00
  • 52de7419f2 HasTable Test should clean up. Robert B Gordon 2014-08-29 08:57:38 -05:00
  • 80b563e312 Merge pull request #209 from rbg/master Jinzhu 2014-08-29 13:57:20 +08:00
  • 4ee47c9228 add test for HasTable() Robert B Gordon 2014-08-29 00:51:45 -05:00
  • 94aa843830 Add HasTable() Robert B Gordon 2014-08-29 00:28:54 -05:00
  • 2d125e035c Fix check postgres has table Jinzhu 2014-08-29 06:22:59 +08:00
  • 423d9496c1 update tests Jinzhu 2014-08-28 15:33:43 +08:00
  • e6715ce175 Merge pull request #208 from longnguyen11288/patch-1 Jinzhu 2014-08-28 10:44:12 +08:00
  • 4fa2faf64c Fixed spelling error Long Nguyen 2014-08-27 12:56:25 -04:00
  • 8f22434ded Use the original DB when create a new Scope Jinzhu 2014-08-27 16:40:32 +08:00
  • 5347765bd3 Merge pull request #206 from cihangir/master Jinzhu 2014-08-27 16:19:55 +08:00
  • 0ed805099e Fix register callbacks in some cases Jinzhu 2014-08-27 16:10:33 +08:00
  • 922395c965 Add InstantSet for DB Jinzhu 2014-08-25 17:10:46 +08:00
  • 3af077ac46 Refact First, Last to make it possible to reset table name in Plugin Jinzhu 2014-08-25 16:41:26 +08:00
  • 4e90fbf4e8 gorm: added ability to change the time.now format Cihangir SAVAS 2014-08-23 01:00:04 -07:00
  • 39ac95adbb Add InstanceSet, InstanceGet fomr Scope Jinzhu 2014-08-20 17:05:02 +08:00
  • 9012c9ea09 Add Set, Get method for DB Jinzhu 2014-08-20 16:25:01 +08:00
  • a80a0a1636 By default, pluralize table name Jinzhu 2014-08-20 13:46:10 +08:00
  • 14fdbdd965 AutoMigrate accepts structs Jinzhu 2014-08-20 11:56:39 +08:00
  • 10668ee323 Don't raise error when get TableName even Scope has no db Jinzhu 2014-08-20 10:49:48 +08:00
  • 3176f9b199 Merge eb26dcc5972cbb62fc989924aa8d5c22ce16f16e into 07e2d49b22b32d037bb283e46d92c5d6a09d95c9 Vytautas Šaltenis 2014-08-15 11:22:57 +00:00
  • 07e2d49b22 Fix invalid reflect value Jinzhu 2014-08-15 11:14:33 +08:00
  • febc826511 Don't check relations if field is ignored Jinzhu 2014-08-14 21:45:42 +08:00
  • 131b504941 Merge pull request #184 from shirou/master Jinzhu 2014-08-06 16:42:03 +08:00
  • b4fc3d9753 add document about DropTableIfExists. Shirou WAKAYAMA 2014-08-05 23:16:22 +09:00
  • 5ad9306146 Add DropTableIfExists. Shirou WAKAYAMA 2014-08-05 23:14:40 +09:00
  • ffab2d3901 I am not using Guard for testing now Jinzhu 2014-08-05 10:44:25 +08:00
  • a0586b3144 Merge 74ff71ede5aaf7f5fb3dc9acf8df38206df7657f into 4d98c8c0bc430f2babd45b3088007841814a0c40 Jamie Foster 2014-08-05 02:39:04 +00:00
  • 4d98c8c0bc Specify database dialect when open database, fixes #169 Jinzhu 2014-08-05 10:32:15 +08:00
  • 943a873051 Merge pull request #183 from bruston/errorf Jinzhu 2014-08-05 10:14:25 +08:00