pouchdb-sqlite-driver-async
v0.1.0
Published
Helpers for adapting async, callback, and synchronous SQLite runtimes to pouchdb-adapter-generic-sqlite.
Readme
pouchdb-sqlite-driver-async
Helpers for implementing additional SQLite backends against pouchdb-adapter-generic-sqlite.
Pre-0.1; not published to npm yet.
The package intentionally does not guess transaction semantics from method names. A backend supplies an explicit transaction strategy:
const driver = createAsyncSQLiteDriver({
cacheNamespace: "my-runtime/v1",
open,
capabilities,
execute,
transaction,
close,
deleteDatabase,
});For APIs controlled by explicit BEGIN/COMMIT/ROLLBACK statements, createExplicitTransactionStrategy() supplies the common transaction wrapper. Callback-oriented libraries can use callbackToPromise() after mapping their library-specific callback context explicitly.
The package also exports row/value normalization, safe integer conversion, bind-limit detection, and Node file helpers.
