Skip to content
Artem Skripnik edited this page Oct 2, 2018 · 2 revisions
  1. Looks like project loopback-connector-readsplitmysql abandoned and code here is exact copy of original loopback-connector-mysql now.
  2. Latest "splitting master/slave" version of loopback-connector-readsplitmysql on npm is 2.4.4 which starting from 2.4.3 has a bug in the file /lib/mysql.js line:

this is not correct:

const client = isWriteOperation || ~!this.readClient ||options.transaction ? this.writeClient : this.readClient;

this is correct:

const client = isWriteOperation || options.transaction ? this.writeClient : this.readClient;

So use v 2.4.2

Clone this wiki locally