Commit Graph

37 Commits

Author SHA1 Message Date
Jinzhu d9229c5a7b Extract method Scan from rows 2016-01-13 16:53:11 +08:00
Jinzhu d53f5cf6dd Rename scope.Trace to trace 2016-01-13 16:00:08 +08:00
Jinzhu 4c1a78bab7 Don't query all columns out from database after create, but only those has default value 2015-12-04 18:41:28 +08:00
Jinzhu fa86433142 Overwrite initiliazed slices as empty slices 2015-08-01 09:09:09 +08:00
Jinzhu 2d802c3445 Overwrite slice results with Find 2015-06-24 13:56:30 +08:00
Jinzhu c2dda88f9a Use Get to replace InstanceGet 2015-05-19 16:58:33 +08:00
Femaref fa696b0e2f Quote the primary column name when doing queries
Postgresql requires certain column names to be quoted.
When unquoted, all upper-case characters will be converted to lower-case,
and column names like 'typeID' will result in a query on 'typeid'.
2015-04-26 16:34:52 +02:00
Jinzhu ef4299b398 Add RowQuery callback 2015-04-17 18:27:20 +08:00
Jinzhu 7d16055a5d Don't use instance setting for order_by_primary_key 2015-03-23 11:07:39 +08:00
Jinzhu 6e5d46bf37 Refactor Search API 2015-03-12 14:47:07 +08:00
Jinzhu 9f2959959b Add error if query destination is not supported 2015-03-12 12:11:38 +08:00
Jinzhu 4c815fd2cc Add add limit 1 for Find automatically 2015-03-12 12:01:53 +08:00
Jinzhu ce72988e96 Refactoring API for plugin system 2015-02-26 14:40:30 +08:00
Jinzhu 83ee11e184 Don't call callbacks if has error 2015-02-24 16:28:15 +08:00
Jinzhu 38cbff9c79 Refactor Associations 2015-02-17 20:19:47 +08:00
Jinzhu 73b6f0eace Linting according to golint 2015-02-17 08:34:01 +08:00
Jinzhu dd635a17c2 Preload belongs_to, has_one, has_many relations 2015-02-11 13:43:53 +08:00
Jinzhu 3b784c37c4 First try for the Preload feature 2015-02-11 09:47:10 +08:00
Jinzhu 1888335b6e Add RowsAffected for query 2015-01-28 11:16:33 +08:00
Jinzhu 726b3b8c9f Don't raise scan error on column index 2015-01-19 15:50:21 +08:00
Jinzhu 0219fb1cc0 Don't raise error if no record found when find all 2014-12-19 11:50:34 +08:00
Jinzhu facd84deec Quote table name when order by primary key 2014-09-13 16:11:49 +08:00
Jinzhu d806b7084f Pass anonymous struct tests 2014-08-30 21:42:35 +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 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 0d3085393e Add IndirectValue for Scope 2014-07-30 14:58:00 +08:00
Jinzhu 40c16f3c29 Export method ToSnake and SnakeToUpperCamel 2014-07-21 14:06:54 +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 319af32c78 Return RecordNotFound error when no record found for slice 2014-06-05 17:15:25 +08:00
Jinzhu b713479174 change callback names 2014-01-29 10:28:20 +08:00
Jinzhu 275de4f133 Add method inlineCondition 2014-01-28 10:06:03 +08:00
Jinzhu 6e848fc987 move row, rows, scan to scope 2014-01-28 09:48:44 +08:00
Jinzhu db68e7a8fe make callback query works 2014-01-28 09:25:30 +08:00
Jinzhu 34122c12d1 Add callback query 2014-01-26 12:49:10 +08:00