Commit Graph

959 Commits

Author SHA1 Message Date
Jinzhu ede940e82d Merge pull request #676 from nkovacs/unused-interface
remove unused tabler interface
2015-10-01 22:16:33 +08:00
Nikola Kovacs c691b33ce5 remove unused tabler interface 2015-10-01 10:25:02 +02:00
Jinzhu 8a2b73723d Better compatibility for complex sql type 2015-10-01 08:06:08 +08:00
Jinzhu eeb9ba2250 Fix query with Joins 2015-10-01 07:43:43 +08:00
Jinzhu 4da2c28d4d Fix data race warning when get cached model struct 2015-10-01 07:09:00 +08:00
Jinzhu 88188b6161 Respect Where when create index 2015-10-01 06:53:15 +08:00
Jinzhu 58596afda1 Replace many2many associations with empty 2015-09-30 21:30:58 +08:00
Jinzhu a480621b76 Fix extra updates when Append associations for many2many 2015-09-30 12:10:22 +08:00
Jinzhu 048963c568 Merge pull request #666 from defend7/sqlite_autoincrement
Support the AUTOINCREMENT keyword on SQLite.
2015-09-28 10:20:17 +08:00
Jinzhu e6ef3818bf Merge pull request #669 from nkovacs/addr-fix
Fix panic: reflect.Value.Addr of unaddressable value
2015-09-28 10:16:36 +08:00
Jinzhu 00fe20f8a8 Merge pull request #672 from ivpusic/master
do not execute buildSelectQuery twice
2015-09-28 10:09:44 +08:00
Ivan Pusic 246383326c do not execute buildSelectQuery twice
if buildSelectQuery() is executed twice, then we get more values in SqlVars than expected
2015-09-28 00:03:51 +02:00
Jinzhu 37bf87aa29 Fix can't load preload fields correctly 2015-09-26 00:41:07 +08:00
Jinzhu 198fc47051 Include all primary fields when build where conditions 2015-09-25 17:14:21 +08:00
Nikola Kovacs a8d7a5fa34 add test for unaddressable value in preload 2015-09-24 14:08:36 +02:00
Nikola Kovacs 7f1a4cf301 Fix panic: reflect.Value.Addr of unaddressable value 2015-09-24 13:34:51 +02:00
Vibhav Sreekanti 1d8292c5ab Support the AUTOINCREMENT keyword on SQLite.
Omit the "PRIMARY KEY" clause at the end of the create statement if
any column's SQL tags already contains the PRIMARY KEY constraint.
2015-09-20 10:58:12 -07:00
Jinzhu 19aacb8fbb Add index for deleted_at 2015-09-18 10:28:09 +08:00
Jinzhu 073fa4dc85 include order by for group SQL 2015-09-17 21:39:16 +08:00
Jinzhu 2a46856d52 Fix update fields having default with empty value 2015-09-14 23:41:14 +08:00
Jinzhu edc1f78530 Fix calculate fields for the first time 2015-09-11 07:36:48 +08:00
Jinzhu b46ca62c18 Fix ReturningStr when with schema name, fixes #650 2015-09-11 06:36:17 +08:00
Jinzhu 447885d98f Merge pull request #645 from hobeone/master
Change logger to use an interface.
2015-09-03 07:43:35 +08:00
Daniel Hobe fac5e822ff Change logger to use an interface. This allows reuse of the nice formatting
done by gorm while still sending the output to a custom logger.
2015-09-02 09:37:44 -07:00
Jinzhu d3fea6c535 Fix check HasIndex 2015-09-02 11:34:14 +08:00
Jinzhu b3d0898bf3 Add safeMap back 2015-08-31 15:07:06 +08:00
Jinzhu 8e415788d5 Update Document 2015-08-30 07:28:05 +08:00
clinyong fc8f0e53c8 add toc to documentation 2015-08-26 18:15:58 +08:00
Jinzhu 1d5f5f43f3 Support create/drop multiple tables 2015-08-26 11:54:07 +08:00
Jinzhu 9303e070c8 Add codeclimate 2015-08-22 08:46:46 +08:00
Jinzhu f6f66a60b2 Document ModifyColumn, DropColumn 2015-08-19 22:47:38 +08:00
Jinzhu 44ae41e9b5 Update TODO, refer https://github.com/qor/qor/tree/master/validations for validations 2015-08-19 22:31:52 +08:00
Jinzhu 92e0809716 Don't save associations if has any error happened 2015-08-18 11:09:03 +08:00
Jinzhu 81c00fdc8f Don't add duplicated error 2015-08-18 11:09:03 +08:00
Jinzhu 24aeec7a1e Merge pull request #625 from wallclockbuilder/patch-1
Add documentation info
2015-08-18 09:24:24 +08:00
Jinzhu 9982134955 Fix preload many2many with multiple primary keys 2015-08-18 09:19:50 +08:00
Mawueli Kofi Adzoe 8f901b4b55 Add documentation info 2015-08-18 01:03:00 +00:00
Jinzhu 6a6c1bf762 Remove not necessary PreloadWithJoin 2015-08-18 08:05:44 +08:00
Jinzhu 7ec2b87312 Add more preloading many2many tests 2015-08-18 07:47:00 +08:00
Jinzhu a24417824d More improvements for preload many2many 2015-08-18 07:43:08 +08:00
kimiby 07571d1adf increase performance m2m preload 2015-08-17 22:28:40 +03:00
Jinzhu e2689d335b Merge branch 'kimiby-many2many_preload' 2015-08-17 23:11:54 +08:00
Jinzhu f8e2f04562 Some Tweaks for Preload Many2Many, Add tests with inline conditions 2015-08-17 23:09:07 +08:00
Jinzhu 27511118fe Update Preload Many2Many tests 2015-08-17 22:19:10 +08:00
Jinzhu 3ca4a72a4c Handle DB error in callbacks 2015-08-17 16:50:42 +08:00
Jinzhu 018a7e69ec Handle DB error in callbacks 2015-08-17 16:38:01 +08:00
kimiby 281c5d10f6 preload_m2m improve 2015-08-16 12:36:23 +03:00
kimiby f35dee5531 preload_m2m fix and test 2015-08-16 12:25:25 +03:00
kimiby fbce0d98f6 m2m preload utils 2015-08-16 10:35:58 +03:00
kimiby 42c3f39163 m2m preload 2015-08-16 10:10:11 +03:00