@qubu/adapter-pglite
v0.8.0
Published
> Adapt an application-owned PGlite database for PostgreSQL queries, EXPLAIN, and callback transactions.
Readme
@qubu/adapter-pglite
Adapt an application-owned PGlite database for PostgreSQL queries, EXPLAIN, and callback transactions.
import { pgliteAdapter } from "@qubu/adapter-pglite"
import { qubu } from "qubu"
// Supply the application-owned client or database described above.
const db = qubu(pgliteAdapter(database))Limitations
- No query streaming is exposed. Abort signals are checked before execution, but do not cancel an in-flight driver query.
- Nested transactions/savepoints are not exposed by the transaction-scoped adapter. The application owns database initialization and shutdown.
- The
/migrationentry point requires areadSnapshotcallback and uses the database query queue as its pinned session. Keep unrelated work off that database during migrations. Migration locks supportnoneandexclusive, notshared.
See migration capability profiles for the execution requirements of migration entry points.
