Commit Graph

2638 Commits

Author SHA1 Message Date
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
Jinzhu 2fff8a7fac Revert "quote table name"
This reverts commit 38a06bfdaa.
2014-06-03 17:16:34 +08:00
Jinzhu a77ee01cec Merge pull request #127 from vgarvardt/master
Multicolumn index and unique index
2014-06-01 19:50:28 +08:00
Vladimir Garvardt d1dc0ccbef AddUniqueIndex 2014-06-01 02:35:56 +04:00
Vladimir Garvardt cdce84fd1a AddIndex for multiple columns 2014-06-01 02:26:17 +04:00
Jinzhu 38a06bfdaa quote table name 2014-05-24 09:54:17 +08:00
Jinzhu 2f8b1842d8 Merge pull request #112 from siesta/timenowset
set updated_at and created_at with the same timestamp
2014-05-12 18:27:13 +08:00
Cihangir SAVAS c465d3214f set updated_at and created_at with the same timestamp, prevent record from having slight difference between fields 2014-05-12 12:52:47 +03:00
Jinzhu 452123479e Remove sql string's validation check 2014-04-30 11:53:07 +08:00
Jinzhu ddc1f9156a Fix insert empty record into database 2014-04-29 17:42:10 +08:00
Jinzhu 1120451108 Use sqlite as default test database 2014-04-29 16:02:18 +08:00
Jinzhu a16a5fca58 Only mark those SQL strings has as invalid SQL 2014-04-29 15:51:49 +08:00
Jinzhu 3264b82368 Fix auto migration for sqlite 2014-04-29 15:39:06 +08:00
Jinzhu 514a32e547 Fix imported package name 2014-04-29 15:21:43 +08:00
Paolo Galeone cc3ebd34de Add support to fields with double quotes 2014-04-28 22:37:45 +02:00
Jinzhu d6d83b0cde Fix invalid SQL issue 2014-04-28 16:52:01 +08:00
Jinzhu 6dc332e04d Include table_schema when query from INFORMATION_SCHEMA for mysql 2014-04-25 09:26:10 +08:00
Jinzhu 66e6c9af9f Add method HasTable, HasColumn to dialect 2014-04-25 09:08:48 +08:00