import * as runtime from "@prisma/client/runtime/client"; import type * as Prisma from "./prismaNamespace"; export type LogOptions = 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array ? Prisma.GetEvents : never : never; export interface PrismaClientConstructor { /** * ## Prisma Client * * Type-safe database client for TypeScript * @example * ``` * const prisma = new PrismaClient({ * adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL }) * }) * // Fetch zero or more Users * const users = await prisma.user.findMany() * ``` * * Read more in our [docs](https://pris.ly/d/client). */ new = LogOptions, OmitOpts extends Prisma.PrismaClientOptions['omit'] = Options extends { omit: infer U; } ? U : Prisma.PrismaClientOptions['omit'], ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs>(options: Prisma.Subset): PrismaClient; } /** * ## Prisma Client * * Type-safe database client for TypeScript * @example * ``` * const prisma = new PrismaClient({ * adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL }) * }) * // Fetch zero or more Users * const users = await prisma.user.findMany() * ``` * * Read more in our [docs](https://pris.ly/d/client). */ export interface PrismaClient { [K: symbol]: { types: Prisma.TypeMap['other']; }; $on(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient; /** * Connect with the database */ $connect(): runtime.Types.Utils.JsPromise; /** * Disconnect from the database */ $disconnect(): runtime.Types.Utils.JsPromise; /** * Executes a prepared raw query and returns the number of affected rows. * @example * ``` * const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};` * ``` * * Read more in our [docs](https://pris.ly/d/raw-queries). */ $executeRaw(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise; /** * Executes a raw query and returns the number of affected rows. * Susceptible to SQL injections, see documentation. * @example * ``` * const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com') * ``` * * Read more in our [docs](https://pris.ly/d/raw-queries). */ $executeRawUnsafe(query: string, ...values: any[]): Prisma.PrismaPromise; /** * Performs a prepared raw query and returns the `SELECT` data. * @example * ``` * const result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};` * ``` * * Read more in our [docs](https://pris.ly/d/raw-queries). */ $queryRaw(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise; /** * Performs a raw query and returns the `SELECT` data. * Susceptible to SQL injections, see documentation. * @example * ``` * const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com') * ``` * * Read more in our [docs](https://pris.ly/d/raw-queries). */ $queryRawUnsafe(query: string, ...values: any[]): Prisma.PrismaPromise; /** * Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole. * @example * ``` * const [george, bob, alice] = await prisma.$transaction([ * prisma.user.create({ data: { name: 'George' } }), * prisma.user.create({ data: { name: 'Bob' } }), * prisma.user.create({ data: { name: 'Alice' } }), * ]) * ``` * * Read more in our [docs](https://www.prisma.io/docs/orm/prisma-client/queries/transactions). */ $transaction

[]>(arg: [...P], options?: { isolationLevel?: Prisma.TransactionIsolationLevel; }): runtime.Types.Utils.JsPromise>; $transaction(fn: (prisma: Omit) => runtime.Types.Utils.JsPromise, options?: { maxWait?: number; timeout?: number; isolationLevel?: Prisma.TransactionIsolationLevel; }): runtime.Types.Utils.JsPromise; $extends: runtime.Types.Extensions.ExtendsHook<"extends", Prisma.TypeMapCb, ExtArgs, runtime.Types.Utils.Call, { extArgs: ExtArgs; }>>; /** * `prisma.user`: Exposes CRUD operations for the **User** model. * Example usage: * ```ts * // Fetch zero or more Users * const users = await prisma.user.findMany() * ``` */ get user(): Prisma.UserDelegate; /** * `prisma.token`: Exposes CRUD operations for the **Token** model. * Example usage: * ```ts * // Fetch zero or more Tokens * const tokens = await prisma.token.findMany() * ``` */ get token(): Prisma.TokenDelegate; /** * `prisma.knowledgeEntry`: Exposes CRUD operations for the **KnowledgeEntry** model. * Example usage: * ```ts * // Fetch zero or more KnowledgeEntries * const knowledgeEntries = await prisma.knowledgeEntry.findMany() * ``` */ get knowledgeEntry(): Prisma.KnowledgeEntryDelegate; /** * `prisma.archive`: Exposes CRUD operations for the **Archive** model. * Example usage: * ```ts * // Fetch zero or more Archives * const archives = await prisma.archive.findMany() * ``` */ get archive(): Prisma.ArchiveDelegate; /** * `prisma.entityRelationship`: Exposes CRUD operations for the **EntityRelationship** model. * Example usage: * ```ts * // Fetch zero or more EntityRelationships * const entityRelationships = await prisma.entityRelationship.findMany() * ``` */ get entityRelationship(): Prisma.EntityRelationshipDelegate; /** * `prisma.writeReceipt`: Exposes CRUD operations for the **WriteReceipt** model. * Example usage: * ```ts * // Fetch zero or more WriteReceipts * const writeReceipts = await prisma.writeReceipt.findMany() * ``` */ get writeReceipt(): Prisma.WriteReceiptDelegate; /** * `prisma.entity`: Exposes CRUD operations for the **Entity** model. * Example usage: * ```ts * // Fetch zero or more Entities * const entities = await prisma.entity.findMany() * ``` */ get entity(): Prisma.EntityDelegate; /** * `prisma.entityAlias`: Exposes CRUD operations for the **EntityAlias** model. * Example usage: * ```ts * // Fetch zero or more EntityAliases * const entityAliases = await prisma.entityAlias.findMany() * ``` */ get entityAlias(): Prisma.EntityAliasDelegate; /** * `prisma.staffEvent`: Exposes CRUD operations for the **StaffEvent** model. * Example usage: * ```ts * // Fetch zero or more StaffEvents * const staffEvents = await prisma.staffEvent.findMany() * ``` */ get staffEvent(): Prisma.StaffEventDelegate; /** * `prisma.feedback`: Exposes CRUD operations for the **Feedback** model. * Example usage: * ```ts * // Fetch zero or more Feedbacks * const feedbacks = await prisma.feedback.findMany() * ``` */ get feedback(): Prisma.FeedbackDelegate; } export declare function getPrismaClientClass(): PrismaClientConstructor; //# sourceMappingURL=class.d.ts.map