PouchDB adapter using Capacitor SQLite Plugin as its backing store. Current stable version: 1.0.2. Release cadence is infrequent (no recent updates). Key differentiator: enables PouchDB to use native SQLite storage on Capacitor (iOS/Android) instead of IndexedDB/WebSQL, providing persistent offline data with SQLite reliability. Requires pairing with a Capacitor SQLite storage plugin (e.g., capacitor-sqlite-storage) and must be initialized after the Capacitor 'deviceready' event. Not suitable for browser-only use.
npm install capacitor-adapter-sqlite-pouchdbNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes PouchDB with the Capacitor SQLite adapter, creates a database, and performs a put/get operation.
Wrap adapter setup in Capacitor's 'deviceready' listener or use Capacitor's ready() function.
Pass the SQLite object (the result of import { SQLite } from 'capacitor-sqlite-storage') to the plugin function.Consult PouchDB plugin documentation; if issues occur, downgrade PouchDB to v7 or wrap plugin registration differently.
Ensure you import PouchDB from 'pouchdb-core' (or pouchdb-browser) and call PouchDB.plugin correctly.
Call PouchDB.plugin(capacitorSqlitePlugin(SQLite)) before creating the database.