1.0.2 • Published 9 years ago

deepstream.io-storage-rethinkdb v1.0.2

Weekly downloads
7
License
Apache-2.0
Repository
github
Last release
9 years ago

deepstream.io-storage-rethinkdb

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

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();
1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.1.0

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago