@onn-software/ddl-to-gql
Version:
Convert a SQL DDL to a GraphQL implementation with all relations.
14 lines (13 loc) • 433 B
TypeScript
import { TableDef } from '../model';
export interface HeuristicEngineOptions {
suffixes: string[];
heurEnableAll?: boolean;
}
export declare class HeuristicEngine {
execute(tableDefs: TableDef[], options: HeuristicEngineOptions): TableDef[];
private flattenNames;
private missingRelationByNameMatch;
private missingRelationBySuffix;
private buildRelation;
private crossAllTableAndColumnDefinitions;
}