Commit Graph

2457 Commits

Author SHA1 Message Date
nicholasf a9aef2dd90 Simpler (and correct) example for showing how to declare foreign keys.
Impact: Trivial.
2015-04-22 12:54:19 -07:00
Jinzhu 3c2915a9df Add Nested Preloading to README 2015-04-22 15:38:22 +08:00
Jinzhu 7693c093a9 Refactor Preload 2015-04-22 15:36:10 +08:00
Jinzhu 7ef8b06cb4 Fix tests with mysql 2015-04-22 14:28:50 +08:00
bom_d_van 9e9367e815 refactor preload and its tests 2015-04-21 16:52:18 +08:00
bom_d_van 6d58dc9f4e support nested preloading 2015-04-21 16:52:18 +08:00
Jinzhu 055bf79f8b Don't call method if value is nil 2015-04-21 11:24:48 +08:00
Jinzhu ef4299b398 Add RowQuery callback 2015-04-17 18:27:20 +08:00
Jinzhu 4fbc9d2a8f Remove foundationdb from tests all script because it is not downloadable from offical site 2015-04-17 14:52:59 +08:00
Jinzhu 0e2cd4475f Only load Fields when defined preload 2015-04-16 18:42:35 +08:00
Jinzhu e3d70302f3 Merge pull request #457 from li3p/master
look up the Field.Name in Scope.SetColumn
2015-04-16 18:41:37 +08:00
bom_d_van 681aa90995 simplify clone 2015-04-16 17:36:55 +08:00
bom_d_van 5aca010140 ignore empty dialect in TestManyToManyWithMultiPrimaryKeys 2015-04-16 17:36:22 +08:00
li3p f9bd6bcc64 look up the Field.Name at Scope.SetColumn 2015-04-16 14:28:55 +08:00
li3p 7966cde514 look up the Field.Name at Scope.SetColumn 2015-04-16 14:08:13 +08:00
Jinzhu d61af54b96 Add default model struct 2015-04-13 10:09:00 +08:00
Jinzhu 1eb1ed091f Test ManyToMany relations with multi primary keys 2015-04-10 16:55:53 +08:00
Jinzhu 67266ebdb3 Fix create join table with multi primary keys 2015-04-09 15:51:47 +08:00
Jinzhu e2eef50fb4 Add SetTableNameHandler 2015-04-08 14:56:03 +08:00
Jinzhu b9a39be9c5 Add Tabler 2015-04-08 11:36:01 +08:00
Jinzhu 2123f31d13 Merge pull request #442 from etcinit/docs
Add an example with time
2015-04-04 20:25:57 +08:00
Eduardo Trujillo 640700d391 Add an example with time 2015-04-03 23:08:35 -04:00
Jinzhu a952601f21 Fix query related resources with customized column name 2015-04-03 16:32:53 +08:00
Jinzhu 03966a1e20 Merge pull request #436 from jaytaylor/master
FoundationDB dialect integration
2015-03-30 14:55:50 +08:00
Jinzhu 14620058ed Merge pull request #438 from jaytaylor/jay/update-columns-skip-associations
Skip saving associations during UpdateColumns(...)
2015-03-30 14:44:41 +08:00
Jinzhu c1969b5c1f Merge pull request #439 from gwTumm/patch-1
Fix type of OwnerType in polymorphism example
2015-03-30 14:23:27 +08:00
Tim Kluge 3bd7cab8d6 Fix type of OwnerType in polymorphism example 2015-03-29 20:47:35 +02:00
Jay Taylor ab48cd222a `UpdateColumns(...)` no longer triggers save of associated records. 2015-03-28 14:15:12 -07:00
Jay Taylor dcc06e22f7 FoundationDB dialect layer and compatibility updates. 2015-03-24 10:35:19 -07:00
Jay Taylor 8389d92f78 Futher clarified error messaging for invalid `plucks'. 2015-03-23 15:11:41 -07:00
Jinzhu 7d16055a5d Don't use instance setting for order_by_primary_key 2015-03-23 11:07:39 +08:00
Jinzhu 1e28551d25 Fix additional SQL type 2015-03-20 17:21:17 +08:00
Jinzhu 4b98b145b1 Fix foreign db name in join table for multi primary keys relations 2015-03-20 11:49:16 +08:00
Jinzhu 94a5ebe5b4 Refactor JoinTableHandler 2015-03-20 11:22:14 +08:00
Jinzhu 9af0563496 Passed all tests 2015-03-19 18:30:35 +08:00
Jinzhu 44b106c8e2 Fix tests 2015-03-19 18:23:54 +08:00
Jinzhu 36efd0a561 Fix JoinTableHandler JoinWith 2015-03-19 16:42:13 +08:00
Jinzhu fa753969b1 Fix stack overflow 2015-03-19 16:31:11 +08:00
Jinzhu 6ba0c1661f Refactor JoinTableHandler 2015-03-18 18:26:58 +08:00
Jinzhu c13e2f18f8 New JoinTableHandler 2015-03-18 11:47:11 +08:00
Jinzhu 17b20bcdd8 Merge pull request #426 from willglynn/composite_unique_indexes
Fix creation of composite unique indexes
2015-03-18 08:43:40 +08:00
Will Glynn 87ff58b598 Fix creation of composite unique indexes 2015-03-17 09:04:12 -05:00
Jinzhu a0848909c2 Simplify dialect definitions 2015-03-17 10:40:42 +08:00
Jinzhu faae729b20 Merge pull request #422 from macropodhq/relay-scanner-errors
scanner.Scan() can fail, so the error should be forwarded
2015-03-16 11:40:56 +08:00
deoxxa e77fbed442 scanner.Scan() can fail, so the error should be forwarded 2015-03-16 11:22:31 +11:00
Jinzhu 2989e42d4d Support UpdateColumn with Select and Omit 2015-03-13 11:01:05 +08:00
Jinzhu 187eae8d9c Update with Select and Omit 2015-03-12 18:30:59 +08:00
Jinzhu 5d52826b3d Create with Omit 2015-03-12 18:01:27 +08:00
Jinzhu ad251b9deb Create with Select 2015-03-12 17:47:31 +08:00
Jinzhu da7830ea50 Add SelectAttrs, OmitAttrs 2015-03-12 15:50:38 +08:00