UNPKG

486 BPlain TextView Raw
1import TemplateContext, { TableContext } from "./RelationalDBSchemaTransformer";
2
3/**
4 * An interface to manage interactions with a relational database across
5 * various forms of clients.
6 */
7export interface IRelationalDBReader {
8 listTables(): Promise<string[]>
9
10 getTableForeignKeyReferences(tableName: string): Promise<string[]>
11
12 describeTable(tableName: string): Promise<TableContext>
13
14 hydrateTemplateContext(contextShell: TemplateContext): Promise<TemplateContext>
15}
\No newline at end of file