node package manager
It’s your turn. Help us improve JavaScript. Take the 2017 JavaScript Ecosystem Survey »

Coverage Status npm Dependency Status devDependency Status devDependency Status

deepstream storage connector for rethinkdb

This connector uses the npm rethinkdb package. Please have a look there for detailed options.

Configuration Options

    name: rethinkdb
      host: ${RETHINKDB_HOST}
      port: ${RETHINKDB_PORT}
      database: 'someDb'
      defaultTable: 'someTable'
      splitChar: '/'
    //The host that RethinkDb is listening on 
    host: 'localhost',
    //The port that RethinkDb is listening on 
    port: 28015,
    //(Optional) Authentication key for RethinkDb 
    authKey: 'someString',
    //(Optional, defaults to 'deepstream') 
    database: 'someDb',
    //(Optional, defaults to 'deepstream_records') 
    defaultTable: 'someTable',
    /* (Optional) A character that's used as part of the
    * record names to split it into a tabel and an id part, e.g.
    * books/dream-of-the-red-chamber
    * would create a table called 'books' and store the record under the name
    * 'dream-of-the-red-chamber'
    splitChar: '/'

Basic Setup

var Deepstream = require( '' ),
    RethinkDBStorageConnector = require( '' ),
    server = new Deepstream();
server.set( 'storage', new RethinkDBStorageConnector( {
  port: 5672,
  host: 'localhost'