cluster-db
A wrapper for switching the master/slave connection information.
Usage
var async = var cluster = var database = var { cluster} // set eventcluster // load databasecluster
// database.json "id": "master" "host": "host" "user": "username" "password": "password" "database": "database" "id": "slave1" "host": "host" "user": "username" "password": "password" "database": "database" "id": "slave2" "host": "host" "user": "username" "password": "password" "database": "database" "id": "stats1" "host": "host" "user": "username" "password": "password" "database": "database" "id": "stats2" "host": "host" "user": "username" "password": "password" "database": "database"
Todo
- Support multiple database type.
Documentation
See the documentation
Release History
See the changelog
LICENSE
cluster-db is licensed under the MIT license.