Commit Graph

17 Commits

Author SHA1 Message Date
Jinzhu 192ed06ad8 Add tests for replace, remove callback 2014-01-25 20:04:01 +08:00
Jinzhu 0459aa89db Don't use goroutine to print log 2014-01-22 09:06:03 +08:00
Jinzhu 30e1b07f7e Refact logger 2014-01-04 17:36:58 +08:00
Jinzhu 66bfcec72e Initalize default logger when initalize DB 2014-01-04 15:32:44 +08:00
Jinzhu ccae2f0345 Update DB struct for plugin system 2014-01-04 15:08:00 +08:00
Jinzhu 4125526ef6 Improve Logger 2014-01-03 19:23:41 +08:00
Jinzhu cc4fcbe557 ignore error `sql: Scan error on column index...` 2013-12-27 11:25:33 +08:00
Jinzhu b3d2f62f40 Include filename with linenum when show error message for easy debugging 2013-12-23 17:19:38 +08:00
Jinzhu 690cb1430c Show errors except RecordNotFound error by default for easy debug 2013-12-17 20:42:08 +08:00
Jinzhu 31c64a9c95 Transaction in callbacks 2013-11-24 08:31:44 +08:00
Jinzhu 38f7ecdf15 Better do.go 2013-11-16 17:39:09 +08:00
Jinzhu e0d3100294 Should copy DB when save, update, delete 2013-11-16 14:15:33 +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 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 ea67d1d377 Move non-public DB method to private.go 2013-11-16 11:41:31 +08:00