-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Hello
I'm pleased to try out your adapter but am struggling to make it work in my ionic app on Capacitor 7.
I can create a new DB OK but as soon as I start trying to query it, even just a db.info() I keep getting "No available connection" errors.
PouchDB.plugin(SqlitePlugin).plugin(CapacitorSQLPlugin).plugin(PouchFind);
this._localDb = new PouchDB(this.dbName, { adapter: 'sqlite', sqliteImplementation: 'capicator' });
18:09:10.901 V callback: 22968790, pluginId: CapacitorSQLite, methodName: query, methodData: {"database":"xxxxxxxxxxxxxxxx","statement":"SELECT json, rev FROM 'local-store' WHERE id=?","values":["_local/_pouch_dependentDbs"],"readonly":false,"isSQL92":true}
18:09:10.924 V *** ERROR BeginTransaction: No available connection for database xxxxxxxxxxxxxxxxxxx_2_20250502_093437676
Any ideas what I might be doing wrong or missing?!
My DB code had previously been working OK with the indexed-db and cordova-sqlite adapters on Capacitor 6 and I can't see anything you are doing differently in your Capacitor example.
cheers