/** * Prisma ORM Adapter — Spec 15 R2 * * Extracts table references and schema definitions from Prisma ORM code: * * Schema: model User { ... } blocks in schema.prisma files * Queries: prisma.user.findMany(), prisma.user.create(...), * prisma.user.update(...), prisma.user.delete(...) */ import type { OrmAdapter, OrmTableReference, OrmSchemaDefinition } from './types.js'; import type { AST, LanguageAdapter } from '../../languages/types.js'; export declare class PrismaAdapter implements OrmAdapter { readonly name = "prisma"; readonly fileExtensions: string[]; supportsFile(filePath: string): boolean; extractTableReferences(ast: AST, adapter: LanguageAdapter, sourceCode: string): OrmTableReference[]; /** * Extract table + operation from prisma.modelName.operation() calls. */ private extractPrismaCall; extractSchemaDefinitions(ast: AST, adapter: LanguageAdapter, sourceCode: string): OrmSchemaDefinition[]; /** * Parse model blocks from a Prisma schema file. * * Prisma schema syntax: * model User { * id Int @id @default(autoincrement()) * email String @unique * name String? * createdAt DateTime @default(now()) * } */ private parsePrismaSchema; /** * Find the matching closing brace starting from the opening brace position. */ private findMatchingBrace; /** * Parse individual field definitions from a model body. * * Each field: fieldName FieldType @attributes... */ private parseModelFields; } //# sourceMappingURL=prismaAdapter.d.ts.map