Prisma adapter wrapping the official Prisma client.
The application injects a generated Prisma v7 client through
options.prismaClient.
PrismaAdapter(options?: DatabaseAdapterOptions)
readonly
transactionIsolationLevels: readonly TransactionIsolationLevel[]
Portable levels available from the resolved Prisma connector.
beginTransaction(options?: TransactionOptions): Promise<IAdapterTransaction>
Begin a transaction, returning a handle that can open transaction-scoped data sources as well as commit and roll back.
connect(): Promise<void>
createDataSource(entity: string): DataSource
Open a non-transactional data source for the named entity.
deprecated
createDataSourceForEntity(entity: string): DataSource
Create a DataSource for the named entity using the main client.
disconnect(): Promise<void>
isReady(): boolean
rawQuery<T>(sql: string,params?: unknown[]): Promise<T[]>
Execute a raw query in the backend's own dialect.