Commit Graph

1990 Commits

Author SHA1 Message Date
ikawaha 360328b8c6 Fixed a bug that panic occurs when the value is null 2015-03-02 23:20:30 +09:00
Jinzhu 61a878dc2d Fix Related for belongs to association 2015-03-02 15:55:24 +08:00
Jinzhu b3d6025365 Fix preload error when result is empty 2015-03-02 10:52:18 +08:00
Jinzhu b391029188 Fix stack overflow for many to many associations 2015-02-28 19:09:45 +08:00
Jinzhu 4e8d43dd4f Refactor check HasTable, HasColumn 2015-02-28 17:01:27 +08:00
Jinzhu da8fc53c86 Set IsForeignKey for StructField 2015-02-28 15:54:38 +08:00
Jinzhu 22b1a93e03 Add JoinTableHandler test 2015-02-28 14:16:51 +08:00
Jinzhu 6d64e6837b Add JoinTableHandler 2015-02-28 12:05:14 +08:00
Jinzhu aa0a4012be Escaping table names when AddForeignKey 2015-02-28 09:25:05 +08:00
Jinzhu 33e6b14632 Clear value from db after set table name 2015-02-26 16:08:26 +08:00
Jinzhu b5edc9137c Fix clone callback 2015-02-26 14:47:56 +08:00
Jinzhu ce72988e96 Refactoring API for plugin system 2015-02-26 14:40:30 +08:00
Jinzhu 087b7083ad Fix scope Fields with embedded struct 2015-02-25 11:17:33 +08:00
Jinzhu 07af30c548 Fix primary key in embedded struct 2015-02-25 10:57:21 +08:00
Jinzhu 1011865b91 Merge pull request #380 from rtfb/master
Fix a few typos
2015-02-25 09:08:06 +08:00
Vytautas Šaltenis 59f32f605c Fix a few typos 2015-02-24 21:17:35 +02:00
Jinzhu 1521b794d8 Update README 2015-02-24 22:06:42 +08:00
Jinzhu 10340e6ad7 Support SQL expression 2015-02-24 22:06:35 +08:00
Jinzhu eb480cc085 Modify struct when update association 2015-02-24 18:48:48 +08:00
Jinzhu 0f08058713 Fix quote table name with database 2015-02-24 18:02:22 +08:00
Jinzhu d22cd2e9d7 Update README 2015-02-24 17:11:35 +08:00
Jinzhu 83ee11e184 Don't call callbacks if has error 2015-02-24 16:28:15 +08:00
Jinzhu 5586d04999 Uniq foreign key for Preload 2015-02-24 15:50:02 +08:00
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