@dineug/erd-editor
Version:
Entity-Relationship Diagram Editor
20 lines (19 loc) • 758 B
TypeScript
import { DataTypeHint, PrimitiveType } from '../../constants/sql/dataType';
import { Column, Table } from '../../internal-types';
export interface FormatTableOptions {
buffer: string[];
table: Table;
}
export interface FormatColumnOptions {
buffer: string[];
column: Column;
}
export interface FormatRelationOptions {
buffer: string[];
table: Table;
}
export declare const hasOneRelationship: (value: number) => boolean;
export declare const hasNRelationship: (value: number) => boolean;
export declare function getPrimitiveType(dataType: string, database: number): PrimitiveType;
export declare function getDataTypeHints(database: number): DataTypeHint[];
export declare function getNameCase(name: string, nameCase: number): string;