UNPKG

auto-builder-sdk

Version:

SDK for building Auto Builder workflow plugins

15 lines (14 loc) 478 B
export type PrismaClient = { [k: string]: unknown; } & { $disconnect?: () => Promise<void>; }; /** Engine-side hook – do **not** call this from plugin code. */ export declare const _injectPrisma: (client: PrismaClient) => void; /** * Obtain the shared Prisma client. * * @throws Error if the engine has not injected the client yet (should never * happen inside Auto-Builder but is useful in unit tests). */ export declare const getDb: () => PrismaClient;