UNPKG

@datazod/zod-sql

Version:

Convert Zod schemas to SQL table definitions with support for SQLite, PostgreSQL, and MySQL

7 lines 360 B
import { type ZodObject, type ZodRawShape } from 'zod'; import type { TableOptions, TableStructure } from '../types'; /** * Extracts table structure metadata from Zod schema */ export declare function extractTableStructure<T extends ZodRawShape>(schema: ZodObject<T>, options?: TableOptions): TableStructure; //# sourceMappingURL=structure-extractor.d.ts.map