import type { ConnectionInfo } from '@prisma/driver-adapter-utils'; import type { IsolationLevel } from '@prisma/driver-adapter-utils'; import * as planetScale from '@planetscale/database'; import type { SqlDriverAdapter } from '@prisma/driver-adapter-utils'; import type { SqlDriverAdapterFactory } from '@prisma/driver-adapter-utils'; import type { SqlQuery } from '@prisma/driver-adapter-utils'; import type { SqlQueryable } from '@prisma/driver-adapter-utils'; import type { SqlResultSet } from '@prisma/driver-adapter-utils'; import type { Transaction } from '@prisma/driver-adapter-utils'; import type { TransactionOptions } from '@prisma/driver-adapter-utils'; declare class PlanetScaleQueryable implements SqlQueryable { protected client: ClientT; readonly provider = "mysql"; readonly adapterName: string; constructor(client: ClientT); /** * Execute a query given as SQL, interpolating the given parameters. */ queryRaw(query: SqlQuery): Promise; /** * Execute a query given as SQL, interpolating the given parameters and * returning the number of affected rows. * Note: Queryable expects a u64, but napi.rs only supports u32. */ executeRaw(query: SqlQuery): Promise; /** * Run a query against the database, returning the result set. * Should the query fail due to a connection error, the connection is * marked as unhealthy. */ protected performIO(query: SqlQuery): Promise; } export declare class PrismaPlanetScale implements SqlDriverAdapterFactory { #private; readonly provider = "mysql"; readonly adapterName: string; constructor(arg: planetScale.Config | planetScale.Client); connect(): Promise; } declare class PrismaPlanetScaleAdapter extends PlanetScaleQueryable implements SqlDriverAdapter { constructor(client: planetScale.Client); executeScript(_script: string): Promise; getConnectionInfo(): ConnectionInfo; startTransaction(isolationLevel?: IsolationLevel): Promise; startTransactionInner(conn: planetScale.Connection, options: TransactionOptions): Promise; dispose(): Promise; underlyingDriver(): planetScale.Client; } export { }