A SQLite plugin for Capacitor apps, built on cordova-sqlite-storage. Stable version 0.0.3, intended for Capacitor >=7.0.0. Provides native SQLite database functionality with a simple API for mobile and desktop apps. Key differentiator: leverages the well-tested cordova-sqlite-storage backend for reliability. Supports batch operations and prepared statements. Includes TypeScript definitions. Note: version 0.0.3 is very early and API changes may occur.
npm install capacitor-sqlite-storageNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize a SQLite database, create table, insert data, and query.
Upgrade Capacitor to >=7.0.0
Consider using @capacitor-community/sqlite for ongoing support
Pass 'no-encryption' as encryption mode parameter
Use alphanumeric characters and underscores only
Ensure capacitor.config.ts includes the plugin or run npx cap sync
Run npm install capacitor-sqlite-storage
Call db.open() before executing queries