Commit Graph

1974 Commits

Author SHA1 Message Date
Jinzhu 81874feef9 Merge branch 'thecaddy-master' 2014-09-19 21:51:06 +08:00
Jinzhu 5eeff5d38f Fix some errors for the mssql support pull request 2014-09-19 21:49:04 +08:00
Joel Trost a6b243a3e9 fix for bad rebase 2014-09-16 14:49:29 -07:00
Joel Trost 6b7d0879c5 Ran gofmt and removed panic statements
Unnecessary panics in create_test and delete_test removed
2014-09-16 14:24:55 -07:00
Joel Trost f79e1a2ef6 GORM support for MSSQL, passes all tests 2014-09-16 14:21:35 -07:00
Jinzhu 938c09e702 Merge pull request #222 from jaytaylor/readme-cleanup
README cleanup: Consistent comment prefixing `////` for raw SQL example output.
2014-09-16 11:02:25 +08:00
Jay Taylor 1c4339c2e9 Tabified code sample indentation. 2014-09-15 17:59:04 -07:00
Jinzhu facd84deec Quote table name when order by primary key 2014-09-13 16:11:49 +08:00
Jinzhu 88858a942e Update README 2014-09-12 16:40:55 +08:00
Jinzhu 0f3a9a8d02 Support include struct type in the foreign key to avoid ambiguous 2014-09-08 11:19:25 +08:00
Jay Taylor 189a7ef561 Restored original commenting for 3 lines. 2014-09-06 22:55:50 -07:00
Jinzhu 1ad419004f Merge pull request #220 from tschaub/patch-1
Code example fix in readme
2014-09-07 08:09:10 +08:00
Jay Taylor 250de0376b README cleanup: Consistent comment prefixing `////` for raw SQL example output. 2014-09-06 15:55:42 -07:00
Tim Schaub 09d3c5dff0 Match case from above 2014-09-05 15:00:26 -06:00
Jinzhu 58ff124210 Fix messages for remove, replace callbacks 2014-09-02 20:13:00 +08:00
Jinzhu 59846f0e9b Fix tests for association 2014-09-02 20:10:18 +08:00
Jinzhu 953c347ba7 Refactor Scope 2014-09-02 19:03:01 +08:00
Jinzhu 9c7ff3d211 Don't show duplicated replacing callback message 2014-09-01 17:32:11 +08:00
Jinzhu b6d934aff9 Improve HasColumn method, support embedded struct 2014-09-01 17:04:07 +08:00
Jinzhu 7862dace6b Don't panic if can't get address 2014-09-01 14:15:29 +08:00
Jinzhu 204356b320 Update README 2014-08-30 23:24:09 +08:00
Jinzhu c6b1669c6a Fix tests for Scanner 2014-08-30 23:14:14 +08:00
Jinzhu 6271cf0e55 Fix tests for postgres 2014-08-30 22:39:28 +08:00
Jinzhu e9ecf9c1aa Fix HasTable tests 2014-08-30 21:43:52 +08:00
Jinzhu 471eda5a12 Panic if found duplicated column name 2014-08-30 21:42:35 +08:00
Jinzhu f984bc8515 Refact code 2014-08-30 21:42:35 +08:00
Jinzhu d806b7084f Pass anonymous struct tests 2014-08-30 21:42:35 +08:00
Jinzhu b2360c11da Add Fields for embedded struct 2014-08-30 21:42:35 +08:00
Jinzhu ecc23e4432 Merge pull request #211 from rbg/master
Fix the HasTable test, for real.
2014-08-29 22:58:35 +08:00
Robert B Gordon bc616fafbf Fix the HasTable test, for real. 2014-08-29 09:53:12 -05:00
Jinzhu 43be73504f Merge pull request #210 from rbg/master
HasTable Test should clean up.
2014-08-29 22:30:19 +08:00
Robert B Gordon 52de7419f2 HasTable Test should clean up. 2014-08-29 08:57:38 -05:00
Jinzhu 80b563e312 Merge pull request #209 from rbg/master
Add HasTable()
2014-08-29 13:57:20 +08:00
Robert B Gordon 4ee47c9228 add test for HasTable() 2014-08-29 00:51:45 -05:00
Robert B Gordon 94aa843830 Add HasTable() 2014-08-29 00:28:54 -05:00
Jinzhu 2d125e035c Fix check postgres has table 2014-08-29 06:22:59 +08:00
Jinzhu 423d9496c1 update tests 2014-08-28 16:14:44 +08:00
Jinzhu e6715ce175 Merge pull request #208 from longnguyen11288/patch-1
Fixed spelling error
2014-08-28 10:44:12 +08:00
Long Nguyen 4fa2faf64c Fixed spelling error 2014-08-27 12:56:25 -04:00
Jinzhu 8f22434ded Use the original DB when create a new Scope 2014-08-27 16:50:22 +08:00
Jinzhu 5347765bd3 Merge pull request #206 from cihangir/master
gorm: added ability to change the time.now format
2014-08-27 16:19:55 +08:00
Jinzhu 0ed805099e Fix register callbacks in some cases 2014-08-27 16:10:33 +08:00
Jinzhu 922395c965 Add InstantSet for DB 2014-08-25 17:10:46 +08:00
Jinzhu 3af077ac46 Refact First, Last to make it possible to reset table name in Plugin 2014-08-25 16:41:26 +08:00
Cihangir SAVAS 4e90fbf4e8 gorm: added ability to change the time.now format 2014-08-23 01:00:04 -07:00
Jinzhu 39ac95adbb Add InstanceSet, InstanceGet fomr Scope 2014-08-20 17:05:02 +08:00
Jinzhu 9012c9ea09 Add Set, Get method for DB 2014-08-20 16:25:01 +08:00
Jinzhu a80a0a1636 By default, pluralize table name 2014-08-20 13:46:10 +08:00
Jinzhu 14fdbdd965 AutoMigrate accepts structs 2014-08-20 11:56:39 +08:00
Jinzhu 10668ee323 Don't raise error when get TableName even Scope has no db 2014-08-20 10:49:48 +08:00