How to use the pouchdb-adapter-memory function in pouchdb-adapter-memory

To help you get started, we’ve selected a few pouchdb-adapter-memory examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pouchdb / pouchdb / packages / pouchdb / src / extras / memory.js View on Github external
/* global PouchDB */

import MemoryPouchPlugin from 'pouchdb-adapter-memory';
import { guardedConsole } from 'pouchdb-utils';

var PDB = (typeof PouchDB !== 'undefined') ? PouchDB : require('pouchdb');
if (!PDB) {
  guardedConsole('error', 'memory adapter plugin error: ' +
    'Cannot find global "PouchDB" object! ' +
    'Did you remember to include pouchdb.js?');
} else {
  MemoryPouchPlugin(PDB);
}

pouchdb-adapter-memory

PouchDB adapter using in-memory as its data store.

Apache-2.0
Latest version published 1 year ago

Package Health Score

81 / 100
Full package analysis

Popular pouchdb-adapter-memory functions

Similar packages