Commit Graph

619 Commits

Author SHA1 Message Date
Jinzhu 1ff630f3d5 Add test for float64 precision 2013-12-03 08:35:34 +08:00
Jinzhu 2b36ccddd0 Merge pull request #22 from siesta/master
Postgresql Dialect: fix primary tag for int types
2013-12-02 01:44:48 -08:00
Cihangir 93fdc2dbc3 Postgresql Dialet: fix primary tag for int types
There is not `sehrial`type in postgresql
2013-12-01 21:26:19 -08:00
Jinzhu 49fa9c7f4a Convert string to int automatically when query and update 2013-11-30 19:56:20 +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 1959d99646 Merge pull request #19 from coderhaoxin/master
Update README.md
2013-11-29 00:29:09 -08:00
haoxin c37227346c Update README.md 2013-11-29 09:33:59 +08:00
Jinzhu 81a44f0283 Convert Tab to Spaces in README 2013-11-26 11:39:07 +08:00
Jinzhu 0e2bef7006 Add Method RecordNotFound() 2013-11-24 11:29:37 +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 96ade8c619 NewRecord should also works with struct pointer 2013-11-23 22:06:52 +08:00
Jinzhu 660ee1ed73 Add Method NewRecord 2013-11-23 21:38:31 +08:00
Jinzhu 66ac04ba05 Fix MySQL compatibility 2013-11-21 14:33:06 +08:00
Jinzhu 0208ce7901 Fix []byte type 2013-11-21 13:47:49 +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 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 282b5d872c Document Row & Rows 2013-11-17 12:09:40 +08:00
Jinzhu 094a546815 Update README 2013-11-17 12:02:22 +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 8fd8604a70 Support use variable to keep query chain 2013-11-16 22:42:00 +08:00
Jinzhu c9e8c8d16c Refact tests 2013-11-16 22:26:34 +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 0ad707b410 Yay, all tests passed 2013-11-16 18:42:47 +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 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 045b3b6fbc Fix errors in field.go, model.go 2013-11-16 12:22:18 +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
Jinzhu b3db0b2959 Remove Chain.go 2013-11-16 11:37:10 +08:00
Jinzhu 3cfa19b761 Move all chain method to main.go 2013-11-16 11:36:30 +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 85109e104e Rename some interfaces 2013-11-16 08:15:21 +08:00
Jinzhu c9d5667ff0 Merge branch 'master' into v2 2013-11-16 07:34:17 +08:00
Jinzhu abdf59f46d Add blob for Sqlite3 2013-11-16 07:34:01 +08:00
Jinzhu 2d85c30fde Add search condition 2013-11-15 22:29:42 +08:00
Jinzhu 5ded927a9a change method NewDialect to New 2013-11-15 19:43:45 +08:00
Jinzhu 52fd87c57b Define some error codes 2013-11-15 18:36:39 +08:00