Commit Graph

2041 Commits

Author SHA1 Message Date
Jinzhu 48930b60eb Fix spelling error in README 2014-10-28 17:01:05 +08:00
Paolo Galeone c108cf022b Add support for signed and unsigned integer types as primary key type 2014-10-22 17:33:13 +02:00
Jinzhu 52ba1858c3 Merge pull request #247 from arianitu/master
Update README.md
2014-10-15 21:27:48 +08:00
Jinzhu 6c1ca7adb8 Include ignored columns in Fields(), it could be used as cache field 2014-10-14 00:06:41 +08:00
arianitu 716e682394 Update README.md
Make the connection string for MySQL more obvious.
2014-10-11 21:40:10 -04:00
Jinzhu 5d0d2a8e98 Merge pull request #244 from rtfb/fix-ignored-field-bug
Fix a bug with custom columns and ignored fields
2014-10-10 08:34:32 +08:00
Vytautas Šaltenis 67f71b2f86 Fix a bug with custom columns and ignored fields
An ignored field should also be ignored when column names are being
determined.
2014-10-10 00:05:15 +03:00
Jinzhu 0aaefebf4f Add support for custom column names 2014-10-07 22:37:33 +08:00
Jinzhu 5b5ee62d06 Merge pull request #241 from tstorch/if_to_switch
Cheanged if to switch in scope.go
2014-10-07 21:56:04 +08:00
Tristan Storch 41eeeeea7c Cheanged if to switch in scope.go
Readability improved by changing a long if-else to a switch statement.
2014-10-06 11:11:07 +02:00
Jinzhu 375f3ee260 Merge pull request #239 from tstorch/cleanup
FieldValueByName does now only what it should
2014-10-03 13:32:18 +08:00
Tristan Storch 9bee4239d4 FieldValueByName does now only what it should
FieldValueByName in utils.go does now only what it should and has proper errors.
2014-10-01 16:20:12 +02:00
Tristan Storch f1212ecd58 Readability update
Small readability update. Includes also a switch from bool return values to
error return values in Scope.SetColumn and Field.Set.
2014-09-30 14:02:51 +02:00
Jinzhu 591d4a4057 Merge pull request #235 from ehabit/patch-1
Fixed typo on line 196, changed works to work.
2014-09-28 07:27:42 +08:00
ehabit bdadbb5c6f Fixed typo on line 196, changed works to work.
Fixed typo on line 196, changed works to work.
2014-09-27 15:35:18 -07:00
Jinzhu eb7ba964b2 Merge pull request #234 from tstorch/small_refactor
Minor Refactoring for readability
2014-09-26 21:56:39 +08:00
Tristan Storch f771ee21da Minor Refactoring for readability
Refactored of a small portion if the scope code for readability
2014-09-26 15:35:04 +02:00
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