This waigo plugin provides a database connection and corresponding model layer for working with RethinkDB databases.
Models:
src/models/aclsrc/models/activitysrc/models/cronsrc/models/user
Database connections:
src/support/db/rethinkdb
$ npm install waigo-plugin-rethinkdbSet your main database to be a RethinkDB db:
/* file: src/config/base.js */
module.exports = function(config) {
...
config.db = {
main: {
type: 'rethinkdb',
serverConfig: {
db: 'waigo',
servers: [
{
host: '127.0.0.1',
port: 28015,
}
],
}
}
};
...
}## Development
To run the tests:
$ npm install
$ npm testMIT - see LICENSE.md