deepstream.io-storage-levelup
v1.0.0
Published
Connects deepstream.io to LevelUP
Downloads
1
Readme
deepstream.io-storage-levelup
deepstream storage connector for levelup
##Basic Setup
var Deepstream = require('deepstream.io'),
LevelStorageConnector = require('deepstream.io-storage-levelup'),
level = require('level'),
server = new Deepstream();
var dbPath = require('path').resolve(__dirname + '/../test.level.db');
var db = level(dbPath, { createIfMissing: true, valueEncoding: 'json' })
server.set('storage', new LevelStorageConnector( {
db: db,
splitChar: '|'
}));
server.start();