deepstream.io-storage-levelup

1.0.0 • Public • Published

deepstream.io-storage-levelup npm version

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

Readme

Keywords

none

Package Sidebar

Install

npm i deepstream.io-storage-levelup

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • fanweixiao