{"library":"mysql-cluster","type":"library","category":null,"description":"A wrapper around the MySQL driver (mysql2 or mysql) that provides easy master/slave server setup via a PoolCluster configuration. Version 0.5.0 is the current stable release, though it has seen no recent updates. It allows you to define master and slave node pools and automatically route queries to the appropriate pool. Key differentiators include support for retries, node error counting, and round-robin or random selection strategies. This package simplifies read/write splitting in MySQL deployments.","language":"javascript","status":"maintenance","version":"0.5.0","tags":["javascript","Node.js","mysql","master","slave","wrapper"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install mysql-cluster","imports":["import mysqlCluster from 'mysql-cluster'; const cluster = mysqlCluster(config);","const cluster = require('mysql-cluster')(config);","import mysqlCluster from 'mysql-cluster';"]},{"cmd":"yarn add mysql-cluster","imports":[]},{"cmd":"pnpm add mysql-cluster","imports":[]}],"homepage":"https://github.com/akayami/mysql-cluster#readme","github":"https://github.com/akayami/mysql-cluster","docs":null,"changelog":null,"pypi":null,"npm":"mysql-cluster","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}