Skip to content

MySQL Replication Driver Support #559

Open
@DigitalSmile

Description

@DigitalSmile

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?

Metadata

Metadata

Assignees

Labels

enhancementImprove a feature or add a new feature

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions