Commit Graph

1317 Commits

Author SHA1 Message Date
Jinzhu a97a508ec7 Raise error if using unaddressable value 2015-02-23 09:40:39 +08:00
Jinzhu 7934223f99 Better formated logger 2015-02-23 09:26:26 +08:00
Jinzhu 068e774540 Overwrite Select conditions 2015-02-23 08:58:52 +08:00
Jinzhu 49a33dd5d0 Remove other select conditions for count 2015-02-22 22:40:12 +08:00
Jinzhu 38938f299f Better formated sql log 2015-02-20 22:41:03 +08:00
Jinzhu 406a01875c Test using pointer as struct fields 2015-02-20 22:06:49 +08:00
Jinzhu b7edaeeeb3 Test ID as foreign key 2015-02-18 13:37:27 +08:00
Jinzhu af7da1ec44 GetModelStruct without relations 2015-02-18 13:16:32 +08:00
Jinzhu 0d2c37e310 Refactor Model Struct 2015-02-18 12:50:37 +08:00
Jinzhu 9e5c64d611 Refactor model struct 2015-02-18 11:37:08 +08:00
Jinzhu 5c478b46e1 Use Common Initialisms from golint 2015-02-18 10:36:32 +08:00
Jinzhu 672ba4ffc9 Rename ToSnake to ToDBColumnName 2015-02-18 09:26:35 +08:00
Jinzhu 1ba5ce3bbc Cache model struct with struct type 2015-02-18 09:01:43 +08:00
Jinzhu 9b355ee86c Fix Associations with slice of pointer 2015-02-17 23:36:23 +08:00
Jinzhu 73a0401678 Cache generated model structs 2015-02-17 23:18:12 +08:00
Jinzhu 0b32041135 Review and Refactor 2015-02-17 22:55:14 +08:00
Jinzhu 38cbff9c79 Refactor Associations 2015-02-17 20:19:47 +08:00
Jinzhu 00d1187c4c Refactor Association 2015-02-17 19:17:21 +08:00
Jinzhu 2a8c7973cb Use new relationship API 2015-02-17 18:57:50 +08:00
Jinzhu fcb6b06d22 Add Tag for Field 2015-02-17 18:52:10 +08:00
Jinzhu a38f83527a Fix all tests 2015-02-17 18:37:47 +08:00
Jinzhu d6439f4147 Fix tests after refactor 2015-02-17 18:01:24 +08:00
Jinzhu 803343fbe5 Fix scope.getField 2015-02-17 14:30:37 +08:00
Jinzhu 139b9a37e7 Merge branch 'master' into refactor 2015-02-17 08:38:32 +08:00
Jinzhu b8976ab20f Merge branch 'adamar-master' 2015-02-17 08:34:09 +08:00
Jinzhu 73b6f0eace Linting according to golint 2015-02-17 08:34:01 +08:00
Andrew Martin f37ccf2a7e more linting 2015-02-17 10:21:18 +11:00
Andrew Martin f9638f3633 linting 2015-02-17 10:19:42 +11:00
Andrew Martin 52775992ec golinting 2015-02-17 10:15:34 +11:00
Jinzhu de3f2a5c46 Refactor Fields 2015-02-16 17:47:07 +08:00
Jinzhu 2d866090e4 Fix get scanner type 2015-02-16 17:10:13 +08:00
Jinzhu f4e705b749 Fix compile error 2015-02-16 16:42:01 +08:00
Jinzhu 3a73206010 Refactor model struct 2015-02-16 16:35:26 +08:00
Jinzhu 1726cebc2e update 2015-02-16 12:04:46 +08:00
Jinzhu 5d692a6bf2 Try to cache struct fields 2015-02-15 23:01:09 +08:00
Jinzhu 6864d5e5bd Add polymorphic_test.go 2015-02-13 11:26:02 +08:00
Jinzhu e615aab232 Rename anonymous_struct_test.go to embedded_struct_test.go 2015-02-13 10:57:35 +08:00
Jinzhu b3b87d9c45 Fix Preload belongs to relations has same records 2015-02-12 13:50:16 +08:00
Jinzhu 0fb4b7d9f0 Merge pull request #366 from rtfb/master
Fix typo: Condiation -> Condition
2015-02-12 09:55:13 +08:00
Vytautas Šaltenis 76d1d1e1cc Fix typo: Condiation -> Condition 2015-02-11 21:14:34 +02:00
Jinzhu 6dc33d6d94 Merge pull request #360 from sendyhalim/scope-add-foreignkey
Add Scope.addForeignKey()
2015-02-11 19:35:57 +08:00
Jinzhu 0ea51c1e1f Update README for Preload 2015-02-11 19:27:58 +08:00
Jinzhu 24e0de116a Add inline condition support for Preload 2015-02-11 19:08:42 +08:00
Jinzhu 87b23edd3b Fix get PrimaryKeyField with embedded struct 2015-02-11 18:10:59 +08:00
Jinzhu aac52fdcf8 Fix Preload with slice of pointer 2015-02-11 17:58:19 +08:00
Jinzhu f97e2c088e Make Preload works with has_one, has_many, belongs_to relations 2015-02-11 17:17:27 +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 8aef600540 Fix association Replace delete wrong records 2015-02-09 21:54:16 +08:00
Jinzhu 2c76c4983d Merge pull request #353 from deoxxa/support-scannable-slices
check for IsScanner on slices
2015-02-09 21:24:29 +08:00