Commit Graph

18 Commits

Author SHA1 Message Date
Lunny Xiao bd20c37bfb
Add SetSchema for engine (#876)
* add SetSchema for engine

* fix user

* fix postgres with schema

* fix test

* fix test

* fix test

* fix tablename

* refactor tableName

* fix schema support

* improve the interface of EngineInterface
2018-04-10 09:50:29 +08:00
Lunny Xiao 865979f716
add support for map[string]interface{} as condition on Update and Where (#764) 2017-10-30 11:07:56 +08:00
Lunny Xiao 109cb1a7d0 Add support Engine Group (#748)
* add support group engine

* revert code

* add NewGroup function

* add engine group policy

* rename file name

* modify policy interface

* remove Init function from policy interface

* refactor Group Policy

* rename and comments

* rename and bug fix for WeightRoundRobinPolicy

* modify Slave function

* modify Slave function and add LeastConnPolicy

* use original Engine and Session

* remove unused count variables

* fix bug on NewEngineGroup

* remove unused method

* improve range and refactor

* add some comments and refactor

* implement GroupPolicy of GroupPolicyHandler

* refactor

* simple code

* add tests support for EngineGroup & fix some bugs

* improve the NewEngineGroup interface

* change the default policy of engine group

* fix some tests
2017-10-16 15:28:13 +08:00
Lunny Xiao d9565718bc Add test for updated created (#727)
* add test for updated created

* more tests
2017-09-16 18:48:03 +08:00
Lunny Xiao 3101e3bc44 fix conflicts between Cols and updated (#725) 2017-09-15 09:51:15 +08:00
Lunny Xiao 0f250847e5 add more tests for created int64 (#715) 2017-09-10 11:55:24 +08:00
Lunny Xiao 265dd66928 fix bug on cache delete (#703)
* fix bug on cache delete

* fix cache issues and improve the tests
2017-09-09 11:03:34 +08:00
Lunny Xiao bb639f6700 refactor query functions (#689)
* refactor query functions

* remove unused function

* remove unnecessary resetStatement and some improvements

* rename all Id to ID
2017-08-27 15:50:43 +08:00
Lunny Xiao 0fdfa8d8de fix bug on update (#676) 2017-08-05 10:46:29 +08:00
Lunny Xiao e963288b0b add Decr test (#666) 2017-07-27 17:57:38 +08:00
Lunny Xiao 305eb27bcf improve update error when no conent to be updated (#648) 2017-07-21 16:42:23 +08:00
Lunny Xiao d9e6f21d60 fix bugs cols with incr when update (#623) 2017-06-20 15:43:21 +08:00
Lunny Xiao 942887dea0 fix time issues and add some tests for time (#604)
* fix time issues and add some tests for time

* fix tests bug

* fix tests

* some fixes with tests and added mssql support

* fix tests
2017-06-02 16:12:50 +08:00
Lunny Xiao 244841c035 more tests (#601) 2017-05-31 16:45:15 +08:00
Lunny Xiao 9033c97e4d add update test for #555 (#598)
* add update test for #555

* fix tests
2017-05-31 11:13:06 +08:00
Lunny Xiao 7154d2c42d add more tests (#595)
* add more tests

* fix tests
2017-05-30 20:33:30 +08:00
Lunny Xiao 08956a4864
fix #544 2017-03-27 18:14:40 +08:00
Lunny Xiao aa18589b49
add test for confirmation to fix #443 2017-03-26 21:11:56 +08:00