Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
24 lines
888 B
Plaintext
24 lines
888 B
Plaintext
import type { PrismaClient } from '@prisma/client/extension';
|
|
import { entityKind } from "../../entity.js";
|
|
import type { Logger } from "../../logger.js";
|
|
import { PgDatabase } from "../../pg-core/index.js";
|
|
import type { DrizzleConfig } from "../../utils.js";
|
|
import type { PrismaPgQueryResultHKT } from "./session.js";
|
|
export declare class PrismaPgDatabase extends PgDatabase<PrismaPgQueryResultHKT, Record<string, never>> {
|
|
static readonly [entityKind]: string;
|
|
constructor(client: PrismaClient, logger: Logger | undefined);
|
|
}
|
|
export type PrismaPgConfig = Omit<DrizzleConfig, 'schema'>;
|
|
export declare function drizzle(config?: PrismaPgConfig): (client: any) => {
|
|
$extends: {
|
|
extArgs: {
|
|
result: {};
|
|
model: {};
|
|
query: {};
|
|
client: {
|
|
$drizzle: () => PrismaPgDatabase;
|
|
};
|
|
};
|
|
};
|
|
};
|