UNPKG

@onn-software/ddl-to-gql

Version:

Convert a SQL DDL to a GraphQL implementation with all relations.

15 lines (14 loc) 505 B
import { TableDef } from '../model'; export type Overrides = Record<string, Record<string, string>>; export declare class DdlInterpreter { execute(ddl: string, overrides: Overrides): TableDef[]; private parseToColumns; private keyFromSqlKey; private extractTableContents; private splitSingleLineMutipleStatments; private joinMultilineStatementsIntoSingleLine; private splitIntoFieldsAndMeta; private parseMeta; private createTwoWayRelations; private keyOverrite; }