Commit Graph

1770 Commits

Author SHA1 Message Date
Jinzhu 79cacf7f09 improve scope.go 2014-01-26 13:51:23 +08:00
Jinzhu 34122c12d1 Add callback query 2014-01-26 12:49:10 +08:00
Jinzhu 12c3df1f47 Add callback update 2014-01-26 12:46:04 +08:00
Jinzhu 973acd6339 Add callback create, delete 2014-01-26 12:41:37 +08:00
Jinzhu 192ed06ad8 Add tests for replace, remove callback 2014-01-25 20:04:01 +08:00
Jinzhu a8b13f015f Make callback.go works 2014-01-25 19:35:21 +08:00
Jinzhu ff70578eeb Add callback.go 2014-01-24 21:52:26 +08:00
Jinzhu 45edecd13b Merge branch 'master' into plugin_system 2014-01-23 16:43:41 +08:00
Jinzhu 6bb7c8b744 Add callback.go 2014-01-23 16:43:39 +08:00
Jinzhu 2409c26710 Ignore association with sql tag 2014-01-23 08:50:39 +08:00
Jinzhu 950518ae24 Merge branch 'master' into plugin_system 2014-01-22 19:02:05 +08:00
Jinzhu 0459aa89db Don't use goroutine to print log 2014-01-22 09:06:03 +08:00
Jinzhu 71e7b37bdf Merge pull request #46 from leebrooks0/master
Added installation note to the docs
2014-01-05 05:59:57 -08:00
Lee Brooks 1019783c90 Added installation note to the docs 2014-01-05 15:07:50 +02:00
Jinzhu d8f7d4a243 update tests 2014-01-05 09:37:15 +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 68bb65d942 temporary remove codebot, Will add it back when gorm's tests could be run in its box 2014-01-04 14:28:36 +08:00
Jinzhu 13302ba410 Add Joins support 2014-01-04 14:23:55 +08:00
Jinzhu d64f4825d7 Add Codebot 2014-01-04 13:38:41 +08:00
Jinzhu 4125526ef6 Improve Logger 2014-01-03 19:23:41 +08:00
Jinzhu 84395b435b Add some tests for Related() 2014-01-03 18:34:53 +08:00
Jinzhu 09c26cb387 Merge pull request #43 from leebrooks0/master
Added a note to the docs that Gorm uses reflection to know which tables ...
2014-01-03 02:25:07 -08:00
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