Skip to content

mattlenz/deepstream.io-storage-rethinkdb

This branch is 47 commits behind deepstreamIO/deepstream.io-storage-rethinkdb:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

dc1f350 · Sep 20, 2016

History

50 Commits
Sep 20, 2016
Jul 24, 2016
Jan 12, 2015
Jul 13, 2016
Jul 24, 2016
Jun 13, 2016
Jun 29, 2016
Jul 13, 2016
Jun 29, 2016
Jul 24, 2016
Jun 15, 2016

Repository files navigation

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

About

A deepstream.io storage connector for RethinkDB

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 98.5%
  • Shell 1.5%