the database schema
the Entity
the (optional) view type that defines a list of possible view IDs
Create a new database instance
the model constructor
the root name, which is the startKey. I don't recommend it
Unsubscribe a subscriber, so it will not be called anymore Possibly cancel PouchDB changes
The pouchDB factory to unsubscribe from
the subscriber to unsubscribe
Create a new model instance
The database factory to attach to the model
the entity properties
an entity instance
Fetches all documents for this database and map them with the model
the PouchDB factory to use
a promise that resolves into an array of entity instances
Fetches all documents IDs for this database and return them
the PouchDB factory to use
a promise that resolves into an array of string IDs
Fetch a docuemt from the database
the PouchDB factory to use
the document identifier to fetch
a promise resolving with the entity instance
Creates view documents (if required)
Create a new model instance and save it to database
The database factory to attach to the model
the entity properties
an entity instance
Run a query
the pouch factory
the view identifier
the optional startkey
the optional endkey
include_docs
Queries and maps docs to Entity objects
the pouch factory
the view identifier
the optional startkey
the optional endkey
Queries keys. Returns an array of emitted keys
the pouch factory
the view identifier
the optional startkey
the optional endkey
Queries keys/_id map. Returns a map of emitted keys/ID
the pouch factory
the view identifier
the optional startkey
the optional endkey
Subscribes a function to PouchDB changes, so that the function will be called when changes are made
the PouchDB factory
the subscriber function
Returns a database that will only find entities with _id starting with the root path
the root path
Generated using TypeDoc
This represent a Database