deepstream.io-storage-rethinkdb
v1.0.2
Published
Connects deepstream.io to rethinkdb
Downloads
17
Readme
deepstream.io-storage-rethinkdb
deepstream storage connector for rethinkdb
This connector uses the npm rethinkdb package. Please have a look there for detailed options.
##Configuration Options
plugins:
storage:
name: rethinkdb
options:
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( 'deepstream.io' ),
RethinkDBStorageConnector = require( 'deepstream.io-storage-rethinkdb' ),
server = new Deepstream();
server.set( 'storage', new RethinkDBStorageConnector( {
port: 5672,
host: 'localhost'
}));
server.start();