Commit Graph

6 Commits

Author SHA1 Message Date
Lunny Xiao ee5b31ecae
add support for mulitple transactions on one session (#1015) 2018-06-20 17:14:43 +08:00
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 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 1aa1846afb Revert "support reuse session to transaction (#650)" (#651)
This reverts commit c412be2365.
2017-07-23 09:52:08 +08:00
Lunny Xiao c412be2365 support reuse session to transaction (#650) 2017-07-23 09:15:44 +08:00
Lunny Xiao 244841c035 more tests (#601) 2017-05-31 16:45:15 +08:00