SQLite driver for Cordova and Capacitor apps using localForage. Version 1.0.6 provides a TypeScript-compatible driver for persisting data via SQLite on mobile devices, with active maintenance and TypeScript types bundled. Key differentiator: it's a maintained fork of the unmaintained localForage-cordovaSQLiteDriver, supporting Ionic and Capacitor projects.
npm install localforage-cordova-sq-lite-driver-tsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to define and set the SQLite driver with localforage, then store and retrieve a value.
Always call localforage.defineDriver(CordovaSQLiteDriver) before localforage.setDriver([CordovaSQLiteDriver._driver]).
Use the static _driver property as shown in documentation; avoid duplicating the string literal.
Ensure you are running on a device/emulator and have installed cordova-sqlite-storage.
Stay updated with cordova-sqlite-storage releases and migrate to Capacitor SQLite if needed.
Add import: import { CordovaSQLiteDriver } from 'localforage-cordova-sq-lite-driver-ts';Ensure localforage is imported: import localforage from 'localforage';
Use the imported CordovaSQLiteDriver object: localforage.defineDriver(CordovaSQLiteDriver);
Check import path: import { CordovaSQLiteDriver } from 'localforage-cordova-sq-lite-driver-ts'; Ensure module resolution works.