cycle-pouchdb-driver
v0.0.1
Published
A Cycle.js Driver for using PouchDB database
Downloads
2
Readme
cycle-pouchdb-driver
A Cycle.js Driver for using PouchDB database
API
create
const { makePouchDBDriver } = require('cycle-pouchdb-driver')
const drivers = {
httpServer: makeHttpServerDriver(),
pouchDB: makePouchDBDriver({
// <databaseName>: name
}),
}
events to send
{ database, action, ...rest }
- database: database name, see official documentation
- action:
- ...rest: look at action doc, exemple
get
can take_id
andoptions
events to read
{ database, action, data: [] }
- database database source event, so you can filter
- action action source event, so you can filter
- data results, can be PouchDB errors