Commit Graph

79 Commits

Author SHA1 Message Date
Jinzhu ec110657da Refactor based on golint 2016-03-07 17:49:55 +08:00
Jinzhu 19aacb8fbb Add index for deleted_at 2015-09-18 10:28:09 +08:00
Jinzhu d61af54b96 Add default model struct 2015-04-13 10:09:00 +08:00
Jinzhu a2edf56c58 Remove unused codes 2014-01-28 16:06:22 +08:00
Jinzhu 10fcb0c88e update scope.go 2014-01-26 14:18:21 +08:00
Jinzhu 2409c26710 Ignore association with sql tag 2014-01-23 08:50:39 +08:00
Jinzhu fb05f2fde2 Fix TableName for slices 2013-12-31 09:45:01 +08:00
Jinzhu 690cb1430c Show errors except RecordNotFound error by default for easy debug 2013-12-17 20:42:08 +08:00
Jinzhu 49fa9c7f4a Convert string to int automatically when query and update 2013-11-30 19:56:20 +08:00
Jinzhu 7a789c82df Make sure UpdateColumn works with CamelCase 2013-11-24 09:17:13 +08:00
Jinzhu 31c64a9c95 Transaction in callbacks 2013-11-24 08:31:44 +08:00
Jinzhu 29bc814934 Remove unnecessary init method 2013-11-19 08:50:07 +08:00
Jinzhu 87f493d080 Add Scopes Support 2013-11-18 14:35:44 +08:00
Jinzhu 1a2eef181a Add Method UpdateColumn, UpdateColumns 2013-11-17 21:44:11 +08:00
Jinzhu bf1db1534e Use channel to make gorm faster 2013-11-17 09:50:34 +08:00
Jinzhu 88917aa2ef Cache model struct for less GC 2013-11-17 08:55:37 +08:00
Jinzhu 9a1c0d956d cache snake, upper values 2013-11-17 08:28:30 +08:00
Jinzhu 6404f803e8 Reflect do.go 2013-11-16 20:30:46 +08:00
Jinzhu 38f7ecdf15 Better do.go 2013-11-16 17:39:09 +08:00
Jinzhu c3d2746912 Copy search when init do 2013-11-16 13:19:29 +08:00
Jinzhu 045b3b6fbc Fix errors in field.go, model.go 2013-11-16 12:22:18 +08:00
Jinzhu e0b90d9770 Remove unnecessary exported method 2013-11-15 13:30:31 +08:00
Jinzhu 2d34ecd6a9 Refact Code 2013-11-15 11:36:27 +08:00
Jinzhu c354b0fb06 Refact field struct 2013-11-14 22:12:32 +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 c03999a44e Add Tag Support 2013-11-14 00:03:31 +08:00
Jinzhu 5341a5ed43 clean up code 2013-11-12 21:04:48 +08:00
Jinzhu 788da015d1 Clean up code 2013-11-11 21:57:29 +08:00
Jinzhu 0327deec14 Cleanup some codes 2013-11-11 13:53:04 +08:00
Jinzhu 1c49c4ef85 Don't copy unnecessary variables 2013-11-11 13:40:35 +08:00
Jinzhu 874856a592 Cleanup unused code 2013-11-10 23:07:09 +08:00
Jinzhu 0cb1c1ba32 Remove unnecessary field 2013-11-10 22:29:53 +08:00
Jinzhu f82d036f14 Better support for sql.Scanner 2013-11-10 19:38:28 +08:00
Jinzhu 8e0b125cb1 Support sql.Scanner 2013-11-10 18:33:37 +08:00
Jinzhu 328e9401a0 Handle sql.NullValues in search conditions 2013-11-10 09:41:39 +08:00
Jinzhu 8d97fdb172 Support NullFloat64, NullInt64, NullBool, NullString 2013-11-10 08:57:11 +08:00
Jinzhu 562bca71e4 Try to add support for NullInt64 2013-11-10 08:14:41 +08:00
Jinzhu 5da8461161 auto migrate 2013-11-07 09:09:54 +08:00
Jinzhu c842d46b66 Add Support for TableName, used to specify struct's table name 2013-11-06 22:13:18 +08:00
Jinzhu da6ffd52dd Add Method SingularTable 2013-11-06 21:43:41 +08:00
Jinzhu 619ae6549d Fix error when handle relations 2013-11-05 22:34:49 +08:00
Jinzhu 98869cb124 Add Method Related to find associations 2013-11-05 07:46:06 +08:00
Jinzhu 215b736fe1 Ignore unexported field 2013-11-04 07:58:40 +08:00
Jinzhu aa352d405b Make save sub structs works 2013-11-02 20:05:05 +08:00
Jinzhu 5b671a84b6 Error message when set primary key 2013-11-02 18:25:01 +08:00
Jinzhu 2d40175651 Puts errors for ptr values 2013-11-02 18:03:04 +08:00
Jinzhu b9f4a59772 Save substructs successfully 2013-11-02 17:31:55 +08:00
Jinzhu 8c36a5d193 Cache fields 2013-11-02 15:17:11 +08:00
Jinzhu 28b49124eb Handle SubStruct 2013-11-02 14:29:39 +08:00