@datazod/zod-sql
Version:
Convert Zod schemas to SQL table definitions with support for SQLite, PostgreSQL, and MySQL
19 lines • 693 B
TypeScript
import { ZodTypeAny } from 'zod';
import { SQLDialect } from '../../types';
/**
* Determines if a Zod type is nullable or optional
*/
export declare function isNullable(zodType: ZodTypeAny): boolean;
/**
* Helper function to detect if a Zod number type is an integer
*/
export declare function isInteger(zodType: ZodTypeAny): boolean;
/**
* Gets the appropriate identifier quote character for the given SQL dialect
*/
export declare function getQuoteChar(dialect: SQLDialect): string;
/**
* Quotes an identifier (table, column) according to the SQL dialect
*/
export declare function quoteIdentifier(identifier: string, dialect: SQLDialect): string;
//# sourceMappingURL=index.d.ts.map