UNPKG

json-schema-to-sql

Version:

Convert a JSON schema into SQL DDL (create table) statements.

9 lines 274 B
import { ValidationError } from './types'; export declare function generateSQLFromJSONSchema(schema: unknown, dialect?: 'pg' | 'mysql'): { queries: string[]; errors: null; } | { queries: null; errors: ValidationError[]; }; //# sourceMappingURL=index.d.ts.map