Optionaloptions: DatabaseAdapterOptionsPortable levels available from the resolved Prisma connector.
Optionaloptions: TransactionOptionsa two-deferred bridge:
txReady — resolves when $transaction hands back the tx client.hold — kept open until commit() / rollback() settles it.commit() resolves hold then awaits the outer $transaction promise
so commit failures surface. rollback() rejects hold with a private
sentinel, then awaits the outer promise swallowing only that sentinel
to prevent a Deno-fatal unhandled rejection.
Prisma interactive transactions have a ~5s default timeout — the bridge
holds the callback open for the entire Unit of Work. A custom timeout can
be passed through options.transactionTimeout.
Opens the underlying connection (pool).
Create a DataSource for the named entity using the main client.
Entity name
DataSource bound to the entity
Use PrismaAdapter.createDataSource instead — it is
the promoted IDatabaseAdapter member, so the plugin reaches it
without casting to this concrete class. Will be removed in the next major
version.
Closes the underlying connection (pool).
Liveness probe (M95b §3.5): one SELECT 1 through the injected
client's $queryRawUnsafe — the same funnel rawQuery uses, so the
probe cannot diverge from the query path. false for an adapter that
never connected; false when the round trip fails or is refused, so
an outage reads as a fact.
Reports whether the adapter is connected and usable.
true when ready
Execute a raw query in the backend's own dialect.
Expected row shape
The query text
Optionalparams: unknown[]
Positional parameters
The result rows
Prisma adapter wrapping the official Prisma client.
The application injects a generated Prisma v7 client through
options.prismaClient.Since
0.1.0