MCPcopy
hub / github.com/sequelize/sequelize-auto / DialectOptions

Interface DialectOptions

src/dialects/dialect-options.ts:4–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2
3
4export interface DialectOptions {
5 name: string;
6 hasSchema: boolean;
7
8 getForeignKeysQuery: (tableName: string, schemaName: string) => string;
9 remapForeignKeysRow?: (tableName: string, row: FKRow) => FKRelation;
10 countTriggerQuery: (tableName: string, schemaName: string) => string;
11 isForeignKey?: (record: any) => boolean;
12 isUnique?: (record: FKRow, records: FKRow[]) => boolean;
13 isPrimaryKey: (record: any) => boolean;
14 isSerialKey: (record: any) => boolean;
15 showTablesQuery?: (schemaName?: string) => string;
16 showViewsQuery: (schemaName?: string) => string;
17 showElementTypeQuery?: (tableName: string, schemaName?: string) => string;
18 showGeographyTypeQuery?: (tableName: string, schemaName?: string) => string;
19 showGeometryTypeQuery?: (tableName: string, schemaName?: string) => string;
20 showPrecisionQuery?: (tableName: string, schemaName?: string) => string;
21}
22
23export interface FKRow {
24 table: string;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected