2205 Commits

Author SHA1 Message Date
Jinzhu
9b3be66a77 Refact scope Fields 2014-07-30 15:15:23 +08:00
Jinzhu
0d3085393e Add IndirectValue for Scope 2014-07-30 14:58:00 +08:00
Jinzhu
ba95de5c50 Rename relations to associations 2014-07-30 14:30:21 +08:00
Jinzhu
371e6af99e Create join table when run AutoMigrate 2014-07-30 14:20:38 +08:00
Jinzhu
14590a65dc Save many to many relations into join table 2014-07-30 14:18:15 +08:00
Jinzhu
a7aaf151cf Use JoinTable instead of ForeignKey 2014-07-30 11:32:18 +08:00
Jinzhu
d7400c2df4 Don't sort by primary key if it doesn't exist in First/Last 2014-07-29 18:29:03 +08:00
Jinzhu
0c63e57f5c Use tag to set primary key 2014-07-29 18:21:36 +08:00
Jinzhu
f56e071375 Refact parse SQL tag, set default size to 255 2014-07-29 17:52:23 +08:00
Jinzhu
2bffb43138 Write stub code for Many2Many 2014-07-29 17:28:10 +08:00
Jinzhu
62fd13e04e Refact tests 2014-07-29 16:25:38 +08:00
Jinzhu
468e54f0ee Refact tests 2014-07-29 16:04:40 +08:00
Jinzhu
b929a082d7 Fix remove index for sqlite and postgres 2014-07-29 12:02:03 +08:00
Jinzhu
cb7d545ac0 Refact tests 2014-07-29 11:38:28 +08:00
Jinzhu
6a00344355 Fix check HasColumn for sqlite3 2014-07-26 08:37:45 +08:00
Jinzhu
7bad7e7427 Fix check HasColumn for sqlite3 2014-07-25 18:14:44 +08:00
Jinzhu
2d3bcf5297 Refact untils.go 2014-07-25 16:53:28 +08:00
Jinzhu
67b9e2a9ad Fix typo 2014-07-25 15:49:23 +08:00
Jinzhu
11dc47587c Support inline condition when Delete 2014-07-24 18:30:12 +08:00
Jinzhu
ae12a1cca5 Merge pull request #170 from chr4/master
Add basic support for DEFAULT values
2014-07-23 11:28:59 +08:00
Jinzhu
b78645279c Simplify set field value 2014-07-22 13:32:22 +08:00
Chris Aumann
4772acb1c4 Add basic support for DEFAULT values 2014-07-21 23:37:40 +02:00
Jinzhu
40c16f3c29 Export method ToSnake and SnakeToUpperCamel 2014-07-21 14:06:54 +08:00
Jinzhu
11bfaba497 Update README 2014-07-18 15:43:01 +08:00
Jinzhu
3eb4adafba Extract method FieldByName 2014-07-15 11:53:17 +08:00
Jinzhu
96db2a1d15 Merge pull request #165 from rtfb/typos
Various typo fixes
2014-07-13 19:08:25 +08:00
Vytautas Šaltenis
6da7e8c64e Fix couple misleading test failure messages 2014-07-12 13:37:58 +03:00
Vytautas Šaltenis
78948f1b7f Fix couple cosmetic typos 2014-07-12 13:37:58 +03:00
Vytautas Šaltenis
3587dbee4d Fix link to section in README
It seems to be case sensitive, change tableName -> tablename.
2014-07-12 13:37:58 +03:00
Jinzhu
dee9520d4e Merge pull request #163 from jimbao/master
Fix error when deploying to google app engine
2014-07-11 11:00:53 +08:00
Jinzhu
bbb3b50d0a Don't set primary key is alrady exists 2014-07-11 10:05:28 +08:00
Jimmy Wahlberg
d857685771 Fix error when deploying to google app engine
github.com/jinzhu/gorm/postgres.go:103:21: composite struct literal database/sql.NullString with unkeyed fields
2014-07-10 16:15:39 +02:00
Jinzhu
bdaecff30d Update README 2014-07-09 10:18:07 +08:00
Jinzhu
3bd5131132 Support slice of pointers 2014-07-08 10:45:31 +08:00
Jinzhu
a9ac3e10a7 Support upcase column names 2014-07-04 08:19:15 +08:00
Jinzhu
29ac192090 Add Compatibility Mode 2014-07-02 17:55:21 +08:00
Jinzhu
325e6c2ef1 Fix tests with go v1.3 2014-07-02 11:56:44 +08:00
Jinzhu
1c1df2318c Fix exception for FirstOrCreate when search condition is nil 2014-07-01 15:55:19 +08:00
Jinzhu
6c5b95e2b2 Return query error in FirstOrInit and FirstOrCreate 2014-06-23 20:10:54 +08:00
Jinzhu
a89500c855 Add no permission message when fail to create hstore extension 2014-06-14 10:54:14 +08:00
Jinzhu
8be30beee9 Fix typo in README 2014-06-13 10:54:37 +08:00
Jinzhu
938618a3e2 Refact callback_create 2014-06-12 11:54:47 +08:00
Vladimir Garvardt
d2e526bc2d db.Create() for force insert with predefined primary key 2014-06-12 00:51:43 +04:00
Jinzhu
11f232a200 Fix QuotedTableName 2014-06-10 13:08:19 +08:00
Jinzhu
bab148f90c Fix RowsAffected tests 2014-06-09 08:19:24 +08:00
Can Yucel
5f0e640f3d add postgres hstore type support 2014-06-07 20:36:48 -07:00
Jinzhu
744cb7dfda Update README 2014-06-05 18:23:22 +08:00
Jinzhu
f32fa0cb6e Add RowsAffected for DB 2014-06-05 17:58:14 +08:00
Jinzhu
319af32c78 Return RecordNotFound error when no record found for slice 2014-06-05 17:15:25 +08:00
Jinzhu
0cba662be0 Add method QuotedTableName for Scope 2014-06-03 17:17:30 +08:00