UNPKG

quick-erd

Version:

quick and easy text-based ERD + code generator for migration, query, typescript types and orm entity

9 lines (8 loc) 267 B
import { Field, Table } from '../core/ast'; export type SchemaRow = { name: string; sql: string; type: string; }; export declare function parseTableSchema(rows: SchemaRow[]): Table[]; export declare function parseCreateTable(sql: string): Field[] | null;