Core adapter for using SQLite as a PouchDB data store. Version 1.1.2 (last release: unknown cadence). This package provides a SQLite-based storage backend for PouchDB, enabling offline-first databases with SQLite as the underlying engine. Unlike LevelDB-based adapters, this adapter leverages SQLite for better performance on mobile and desktop environments, especially on platforms where SQLite is natively available. Requires a SQLite binding (e.g., react-native-sqlite-storage or sql.js) to be provided via the `sqlite` option. Intended for Node.js, React Native, and browser environments with appropriate SQLite libraries.
npm install pouchdb-adapter-sqlite-coreNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to register the SQLite adapter, set a custom SQLite implementation, and perform basic CRUD operations.
Provide a SQLite library instance before using the database. For React Native: import SQLite from 'react-native-sqlite-storage' and call db.setSqliteImplementation(SQLite).
Use try/catch or error-first callbacks for bulk operations.
Always use the registerAdapter function.
Use a unique adapter name via PouchDB.plugin and specify that name when creating the database.
Call db.setSqliteImplementation(SQLite) with a valid SQLite library instance before any database operation.
Ensure you call PouchDB.plugin(registerAdapter(PouchDB)) with the correct PouchDB instance.
Install the appropriate SQLite package: npm install react-native-sqlite-storage (or other) and link if using React Native < 0.60.
Ensure PouchDB.plugin was called before creating the database, and that the SQLite implementation is set.
Check that the SQLite implementation supports creating tables and that the adapter version matches PouchDB version.