A Capacitor plugin for native Android SQLite database operations. Version 0.2.0 provides methods for loading databases, querying single objects or lists, and inserting/updating/deleting entities directly from Capacitor apps. It requires @capacitor/core ^3.0.0 and is designed for Android only. Compared to web SQLite solutions, it offers native performance and direct file system access. However, the API is still basic (no transactions, migrations, or prepared statements) and may change in future releases.
npm install capacitor-sqlite-androidNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates loading a database and running a parameterized query using CapacitorSQLiteAndroid plugin.
Check return type at runtime: if (typeof result.data === 'string') { /* success with message */ } else { /* boolean true */ }Use import { CapSQLite } from 'capacitor-sqlite-android' then call CapSQLite.echo(...).Use SQLiteEntityOptions (if fixed in future) or ignore.
Check platform via Capacitor.getPlatform() before calling.
Ensure `npx cap sync` was run and import { CapSQLite } from 'capacitor-sqlite-android'.Always call loadDatabase() first and wait for its promise to resolve.
Use import { CapSQLite } from 'capacitor-sqlite-android' then CapSQLite.echo().