Commit Graph

56 Commits

Author SHA1 Message Date
Jinzhu 92213273a5 Refactor create callback 2016-01-17 18:17:04 +08:00
Jinzhu dc23ae63bf Keep refactoring association mode 2016-01-16 17:29:39 +08:00
Jinzhu 4351917c45 Don't panic with ToDbName 2016-01-16 09:49:20 +08:00
Jinzhu 8d716be896 Fix some go vet/lint reports 2016-01-15 21:16:48 +08:00
Jinzhu f70de0bdff Generate more friendly names for table and columns 2016-01-10 22:56:22 +08:00
Jinzhu b3d0898bf3 Add safeMap back 2015-08-31 15:07:06 +08:00
Jinzhu 10340e6ad7 Support SQL expression 2015-02-24 22:06:35 +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 0b32041135 Review and Refactor 2015-02-17 22:55:14 +08:00
Jinzhu 73b6f0eace Linting according to golint 2015-02-17 08:34:01 +08:00
Tristan Storch 9bee4239d4 FieldValueByName does now only what it should
FieldValueByName in utils.go does now only what it should and has proper errors.
2014-10-01 16:20:12 +02:00
Jinzhu 953c347ba7 Refactor Scope 2014-09-02 19:03:01 +08:00
Jinzhu 6271cf0e55 Fix tests for postgres 2014-08-30 22:39:28 +08:00
Jinzhu 90106d82c5 Export Relationship 2014-07-31 14:38:16 +08:00
Jinzhu d7400c2df4 Don't sort by primary key if it doesn't exist in First/Last 2014-07-29 18:29:03 +08:00
Jinzhu 0c63e57f5c Use tag to set primary key 2014-07-29 18:21:36 +08:00
Jinzhu f56e071375 Refact parse SQL tag, set default size to 255 2014-07-29 17:52:23 +08:00
Jinzhu 2d3bcf5297 Refact untils.go 2014-07-25 16:53:28 +08:00
Jinzhu b78645279c Simplify set field value 2014-07-22 13:32:22 +08:00
Jinzhu 40c16f3c29 Export method ToSnake and SnakeToUpperCamel 2014-07-21 14:06:54 +08:00
Jinzhu 3eb4adafba Extract method FieldByName 2014-07-15 11:53:17 +08:00
Jinzhu 506d14a2f2 make callback deletes works 2014-01-27 22:36:08 +08:00
Jinzhu 973acd6339 Add callback create, delete 2014-01-26 12:41:37 +08:00
Jinzhu ab67ec5a4e Use safe map to fix data race 2013-12-15 10:09:19 +08:00
Edward Middleton bd93629e32 * fix race condition 2013-12-12 21:57:10 +09:00
Jinzhu a0ac9992cd Test use int as primary key 2013-12-04 14:00:39 +08:00
Jinzhu fb65095376 Refactor isBlank method 2013-12-04 13:08:31 +08:00
Jinzhu 1ff630f3d5 Add test for float64 precision 2013-12-03 08:35:34 +08:00
Jinzhu 29bc814934 Remove unnecessary init method 2013-11-19 08:50:07 +08:00
Jinzhu bf1db1534e Use channel to make gorm faster 2013-11-17 09:50:34 +08:00
Jinzhu 9a1c0d956d cache snake, upper values 2013-11-17 08:28:30 +08:00
Jinzhu ba6403f904 Fix binvar for mysql 2013-11-16 20:47:25 +08:00
Jinzhu 7912631be7 Make clone search conditions works 2013-11-16 09:12:22 +08:00
Jinzhu 2b4a4a06f0 Update search.go 2013-11-16 08:22:04 +08:00
Jinzhu 2d34ecd6a9 Refact Code 2013-11-15 11:36:27 +08:00
Jinzhu e4612bde9c Separate Field Struct 2013-11-14 21:26:02 +08:00
Jinzhu c1c13129f1 Finish dialects 2013-11-14 19:09:27 +08:00
Jinzhu 9e762a9a30 Try to add logger 2013-11-11 09:10:16 +08:00
Jinzhu 874856a592 Cleanup unused code 2013-11-10 23:07:09 +08:00
Jinzhu 8e0b125cb1 Support sql.Scanner 2013-11-10 18:33:37 +08:00
Jinzhu 549c7450ea Make it easy when only change one field with Attr, Assign 2013-10-31 12:59:04 +08:00
Jinzhu bc785a9173 Cleanup code 2013-10-29 08:41:07 +08:00
Jinzhu f892a52cad Refact 2013-10-27 19:47:15 +08:00
Jinzhu 09b6fc3ab0 Fix some bugs about Update and Delete 2013-10-26 23:33:04 +08:00
Jinzhu f4f7e44199 yay, update works 2013-10-26 21:37:42 +08:00
Jinzhu 3c68efc94a Support create table with struct 2013-10-26 17:30:34 +08:00
Jinzhu 73cac58998 Move get table name methods to model.go 2013-10-26 16:33:59 +08:00
Jinzhu 5cfad9d35b Add model.go file 2013-10-26 16:29:53 +08:00
Jinzhu e935b4772b Implement method interface to table name 2013-10-26 14:42:14 +08:00