Class: ConfigurablePouchDBStoreFactory

ConfigurablePouchDBStoreFactory(optionsopt)

PersistenceStoreFactory that creates PouchDB backed PersisteneStore instance based on specified configurations, for example, the adapter to be used for the PouchDB.

Constructor

new ConfigurablePouchDBStoreFactory(optionsopt)

Parameters:
Name Type Attributes Description
options object <optional>
The optional options to be applied to every PouchDBPersistenceStore instances created by this factory.
Properties
Name Type Attributes Description
adapter object <optional>
The adapter to be used for the underlying PouchDB. Application uses this option needs to make sure all necessary plugins and adapter are installed.
Properties
Name Type Attributes Description
name string The name of the adapter to be used for the underlying PouchDB.
plugin object <optional>
The plugin associated with the adapter to be used by the underlying PouchDB.
Source:

Methods

##createPersistenceStore(name, optionsopt) → {Promise.<PouchDBPersistenceStore>}

Parameters:
Name Type Attributes Description
name string The name to be associated with the store.
options object <optional>
The configratuion options to be applied to the store.
Properties
Name Type Attributes Description
version string <optional>
The version of the store.
Source:
Returns:
returns a Promise that is resolved to a PouchDB backed PersistenceStore instance with specified configurations.
Type
Promise.<PouchDBPersistenceStore>