Skip to content

pouchdb-community/pouchdb-adapter-fs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pouchdb-adapter-fs

PouchDB adapter using fsdown under the hood. Designed for running a quick persistent PouchDB adapter in Node.js.

Warning: not designed for production use. fsdown contains race conditions and is most appropriate for quick debugging and testing. It does however pass the full PouchDB test suite.

Usage

Install:

npm install pouchdb-adapter-fs

Then

var PouchDB = require('pouchdb-core')
  .plugin(require('pouchdb-adapter-fs'));

var db = new PouchDB('mydb', {adapter: 'fs'});

Testing

COUCH_HOST=http://admin:secret@localhost:5984 npm test