Closed zuozhehao closed 5 years ago
I think this is outside of the scope for this library. To support read/write splits, please create two different connections by constructing two Database classes with different DSN's. Use something like your dependency injector to juggle between them.
When I use ‘select’, I need to use the slave database and how to configure the master slave database.?