UNPKG

@datazod/zod-sql

Version:

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

7 lines 280 B
import { ZodTypeAny } from 'zod'; import { SQLDialect } from '../types'; /** * Maps a Zod type to its corresponding SQL data type based on the dialect */ export declare const mapZodToSql: (zodType: ZodTypeAny, dialect?: SQLDialect) => string; //# sourceMappingURL=index.d.ts.map