How to use the pouchdb-adapter-memory.default 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 paperize / paperize / lib / services / pouch.js View on Github external
import PouchDB from 'pouchdb-core'

// All Environments
let configuredPouch = PouchDB
  .plugin(require('pouchdb-find').default)

if(process.env["NODE_ENV"] === 'test' && typeof window === 'undefined') {
  // Node tests, include extra libs for speed
  configuredPouch
    .plugin(require('pouchdb-adapter-memory').default)
  configuredPouch = configuredPouch.defaults({ adapter: 'memory' })
} else {
  // Any environment with a window
  configuredPouch
    .plugin(require('pouchdb-adapter-idb').default)
    .plugin(require('pouchdb-adapter-websql').default)
}

export default configuredPouch

pouchdb-adapter-memory

PouchDB adapter using in-memory as its data store.

Apache-2.0
Latest version published 5 months ago

Package Health Score

88 / 100
Full package analysis

Popular pouchdb-adapter-memory functions

Similar packages