1.0.2 • Published 8 years ago

deepstream.io-storage-rethinkdb v1.0.2

Weekly downloads
7
License
Apache-2.0
Repository
github
Last release
8 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

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.1.0

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago