Commit Graph

94 Commits

Author SHA1 Message Date
Jinzhu 13302ba410 Add Joins support 2014-01-04 14:23:55 +08:00
Jinzhu 8010616e89 Add method Raw and Scan 2014-01-03 18:14:51 +08:00
Jinzhu dd77ca6df7 Add AfterFind callback 2013-12-30 12:47:29 +08:00
Adam Smith 895812eae3 fix parameter ordering for mysql / postgresql
where … group … having … order .. limit .. offset
2013-12-27 06:25:32 -06:00
Jinzhu 690cb1430c Show errors except RecordNotFound error by default for easy debug 2013-12-17 20:42:08 +08:00
Jinzhu dfc4194162 Better compatibility for Updates 2013-12-17 18:54:37 +08:00
Jinzhu 41d8e2d132 Quote column name to avoid issue when it same as SQL reserved words 2013-11-30 14:53:59 +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 66ac04ba05 Fix MySQL compatibility 2013-11-21 14:33:06 +08:00
Jinzhu 1a2eef181a Add Method UpdateColumn, UpdateColumns 2013-11-17 21:44:11 +08:00
Jinzhu 5411291173 Rename UpdateColumn to ModifyColumn 2013-11-17 20:38:43 +08:00
Jinzhu c62568c089 Make Exec possible to accepts arguments 2013-11-17 16:47:39 +08:00
Jinzhu b41f2957fb Add method Group, Having 2013-11-17 13:29:01 +08:00
Jinzhu 094a546815 Update README 2013-11-17 12:02:22 +08:00
Jinzhu ba6403f904 Fix binvar for mysql 2013-11-16 20:47:25 +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 ca6b074dc6 Refact do 2013-11-16 13:28:22 +08:00
Jinzhu c3d2746912 Copy search when init do 2013-11-16 13:19:29 +08:00
Jinzhu cb53b5ed85 Refact do.go 2013-11-16 12:45:29 +08:00
Jinzhu f884a94495 Refact do.go 2013-11-16 12:31:05 +08:00
Jinzhu cc03f438ef Add Update, Updates back 2013-11-16 12:19:35 +08:00
Jinzhu 3cfa19b761 Move all chain method to main.go 2013-11-16 11:36:30 +08:00
Jinzhu 85109e104e Rename some interfaces 2013-11-16 08:15:21 +08:00
Jinzhu 52fd87c57b Define some error codes 2013-11-15 18:36:39 +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 84646b8db9 Add method UpdateColumn, DropColumn, AddIndex, RemoveIndex. Will document it to README when get a better implementation to fix known issues 2013-11-14 10:30:32 +08:00
Jinzhu 5341a5ed43 clean up code 2013-11-12 21:04:48 +08:00
Jinzhu b22289b249 Clean up more code 2013-11-11 22:58:12 +08:00
Jinzhu 788da015d1 Clean up code 2013-11-11 21:57:29 +08:00
Jinzhu aaa73fe21d Document transaction for callbacks 2013-11-11 19:38:52 +08:00
Jinzhu ce91468922 Make Save, Delete, Updates be executed in transaction to keep data consistency 2013-11-11 18:40:02 +08:00
Jinzhu f2c7beb19f Better default logger 2013-11-11 17:16:15 +08:00
Jinzhu 32562b5537 Better Log support 2013-11-11 15:48:31 +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 d550315548 Add Transaction Support 2013-11-11 13:16:24 +08:00
Jinzhu 50a1b6e3e5 show sql query log 2013-11-11 11:59:15 +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 dc15849313 Don't suppose id's value as int 2013-11-10 10:09:57 +08:00
Jinzhu 328e9401a0 Handle sql.NullValues in search conditions 2013-11-10 09:41:39 +08:00
Jinzhu 562bca71e4 Try to add support for NullInt64 2013-11-10 08:14:41 +08:00