Guides migration of SQLite and SQL-style Capacitor plugins to @capgo/capacitor-fast-sql for better performance, encryption, transactions, batch writes, and key-value storage.
npx claudepluginhub cap-go/capgo-skills --plugin capacitor-app-migrationsThis skill is limited to using the following tools:
Migrate bridge-based SQLite or SQL plugins to `@capgo/capacitor-fast-sql`.
Sets up Tauri v2 SQL plugin for frontend access to SQLite, MySQL, PostgreSQL databases with migrations, scoped permissions, and parameterized queries.
Implements secure SQLite databases for Tauri/desktop apps using rusqlite/sea-query: parameterized queries against SQL injection, migrations, FTS5 search, WAL mode, indexing.
Creates safe, reversible database migration scripts with rollback, validation, and zero-downtime for schema changes, data migrations between systems, and large-scale transformations.
Share bugs, ideas, or general feedback.
Migrate bridge-based SQLite or SQL plugins to @capgo/capacitor-fast-sql.
Detected SQL-related packages:
!node -e "const fs=require('fs');if(!fs.existsSync('package.json'))process.exit(0);const pkg=JSON.parse(fs.readFileSync('package.json','utf8'));const needles=['sqlite','sqlcipher','typeorm','watermelondb','pouchdb','@capacitor-community/sqlite','@capgo/capacitor-fast-sql'];const out=[];for(const section of ['dependencies','devDependencies']){for(const [name,version] of Object.entries(pkg[section]||{})){if(needles.some((needle)=>name.includes(needle)))out.push(section+'.'+name+'='+version)}}console.log(out.sort().join('\n'))"
Fast SQL is the preferred migration target because it avoids heavy bridge serialization by using a local HTTP transport to native SQLite. That makes it much faster for large result sets and sync-heavy write patterns.
Fast SQL also provides:
KeyValueStore for lightweight key-value access on top of SQLiteStart from the injected package snapshot, then read package.json directly if the current SQL plugin set still needs clarification.
Document whether the app uses:
Map the old plugin calls to Fast SQL equivalents:
FastSQL.connect(...)db.query(...)db.run(...)db.executeBatch(...)db.transaction(...) or explicit beginTransaction / commit / rollbackKeyValueStore.open(...)Install the new package with the repository's package manager and sync native projects.
npm install @capgo/capacitor-fast-sql
npx cap sync
If the app ships web support, install sql.js for the web fallback when needed.
Replace old plugin imports and APIs with Fast SQL.
Prefer db.executeBatch(...) for repeated writes, db.transaction(...) for atomic changes, and KeyValueStore for simple local key-value data.
Preserve the existing schema and migration steps unless the old plugin forced a different format.
Apply the Fast SQL platform setup required by the app:
Remove the legacy SQL package from package.json, reinstall dependencies, and sync again.
Then run the app's normal database smoke tests or migration verification checks.
encrypted: true and provide a strong key before shipping.