Commit Graph

896 Commits

Author SHA1 Message Date
Jinzhu 8010616e89 Add method Raw and Scan 2014-01-03 18:14:51 +08:00
Lee Brooks 37abd81de2 Added a note to the docs that Gorm uses reflection to know which tables to work with 2014-01-03 11:26:50 +02:00
Jinzhu 3e24b14906 Update TODO 2014-01-03 14:54:47 +08:00
Jinzhu a2e26d3641 Merge pull request #41 from leebrooks0/master
Made some small improvements to the documentation
2014-01-02 18:56:56 -08:00
Lee Brooks 4203bc15c6 Made some small improvements to the documentation 2014-01-02 19:27:41 +02:00
Jinzhu fb05f2fde2 Fix TableName for slices 2013-12-31 09:45:01 +08:00
Jinzhu dd77ca6df7 Add AfterFind callback 2013-12-30 12:47:29 +08:00
Jinzhu 613600411b Merge pull request #34 from trevrosen/master
Re-submission of docs typo fix
2013-12-27 17:03:53 -08:00
Trevor Rosen f3b09997d2 Fix typo in docs
* Use '.' to bring exported identifiers into main namespace (not '_')
2013-12-27 18:50:26 -06:00
Jinzhu 09464f1a17 Merge pull request #32 from akuseru/master
fix parameter ordering for mysql / postgresql
2013-12-27 16:03:42 -08:00
Trevor Rosen 09334a8bb7 Remove typo from DB access example in README 2013-12-27 16:09:43 -06: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 cc4fcbe557 ignore error `sql: Scan error on column index...` 2013-12-27 11:25:33 +08:00
Jinzhu e2f8d29d7f Add RecordNotFound tests for method Related 2013-12-23 21:15:09 +08:00
Jinzhu b3d2f62f40 Include filename with linenum when show error message for easy debugging 2013-12-23 17:19:38 +08:00
Jinzhu 2d52d6d51b Don't show unnecessary error messages when run tests 2013-12-23 13:34:07 +08: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 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 1e6be1646e Fix postgres primary key sql tag 2013-12-06 08:19:40 +08:00
Jinzhu e6a2273114 Remove method SetPool() in favour of sql package's builtin method, Use
it like this `db.DB().SetMaxIdleConns(10)`

So gorm don't need to care about compatibility problems, and you could
use latest `database/sql` features from latest releases without waiting gorm's support
2013-12-04 14:33:35 +08:00
Jinzhu 90a4581a7f Use method DB() to get database connection handle 2013-12-04 14:29:44 +08: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 204df61a8b Add scripts to test all dialects 2013-12-04 12:07:19 +08:00
Jinzhu 0e8f9011bf Remove unnecessary output in tests 2013-12-04 10:00:53 +08:00
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