0.0.1 • Published 8 years ago
cycle-pouchdb-driver v0.0.1
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
getcan take_idandoptions
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
0.0.1
8 years ago