class PrismaAdapter
implements IDatabaseAdapter
Since 0.1.0

Prisma adapter wrapping the official Prisma client.

The application injects a generated Prisma v7 client through options.prismaClient.

Constructors

PrismaAdapter(options?: DatabaseAdapterOptions)

Properties

Portable levels available from the resolved Prisma connector.

Methods

Begin a transaction, returning a handle that can open transaction-scoped data sources as well as commit and roll back.

connect(): Promise<void>

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.