Open
Description
Is there any way to get ReplicationDriver for MySQL (http://dev.mysql.com/doc/connectors/en/connector-j-master-slave-replication-connection.html) work out of the box with MyBatis?
I believe the main issue is in the configuration of DataSource and the statement executed. If the DataSource issue is clear for me (simply override method getConnection() to create new one and set the readOnly flag to true), the statement part is not. May be an option to the statement or environment configuration should be added to control which statements should be executed on slaves?