Skip to content
This repository has been archived by the owner on Oct 21, 2023. It is now read-only.
/ rethinkdb Public archive

Waigo database connection and model layer for RethinkDB

License

Notifications You must be signed in to change notification settings

waigo/rethinkdb

Repository files navigation

waigo-plugin-rethinkdb

Build Status NPM module Waigo channel on discord Follow on Twitter

This waigo plugin provides a database connection and corresponding model layer for working with RethinkDB databases.

Models:

  • src/models/acl
  • src/models/activity
  • src/models/cron
  • src/models/user

Database connections:

  • src/support/db/rethinkdb

Installation

$ npm install waigo-plugin-rethinkdb

Usage

Set 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 test

License

MIT - see LICENSE.md

About

Waigo database connection and model layer for RethinkDB

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published