prisma-zod-generator
Version:
Prisma 2+ generator to emit Zod schemas from your Prisma schema
14 lines (13 loc) • 681 B
TypeScript
/**
* PZG Pro - Postgres Row Level Security (RLS) Generator
*
* Generate RLS policies from Prisma schema comments
*/
import { DMMF } from '@prisma/generator-helper';
import { GeneratorConfig } from '../../../config/parser';
import { PostgresRLSConfig } from './PostgresRLSGenerator';
export { PostgresRLSConfig, RLSPolicy } from './PostgresRLSGenerator';
/**
* Generate PostgreSQL RLS policies from DMMF data
*/
export declare function generatePostgresRLSFromDMMF(dmmf: DMMF.Document, generatorConfig: GeneratorConfig, schemaPath: string, outputPath: string, prismaClientPath: string, provider: string, config?: PostgresRLSConfig, previewFeatures?: string[]): Promise<void>;