How to use pouchdb-adapter-node-websql - 1 common examples

To help you get started, we’ve selected a few pouchdb-adapter-node-websql 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 / websql.js View on Github external
import WebSqlPouchPlugin from 'pouchdb-adapter-node-websql';
import { guardedConsole } from 'pouchdb-utils';

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

pouchdb-adapter-node-websql

PouchDB adapter using Node-based SQLite as its data store.

Apache-2.0
Latest version published 6 years ago

Package Health Score

75 / 100
Full package analysis

Popular pouchdb-adapter-node-websql functions

Similar packages