@datazod/zod-sql
Version:
Convert Zod schemas to SQL table definitions with support for SQLite, PostgreSQL, and MySQL
7 lines • 318 B
TypeScript
import { ZodObject, ZodRawShape } from 'zod';
import { TableOptions } from '../../types';
/**
* Creates a SQL DDL statement from a Zod schema
*/
export declare function createTableDDL<T extends ZodRawShape>(tableName: string, schema: ZodObject<T>, options?: TableOptions): string;
//# sourceMappingURL=index.d.ts.map