Class: SchemaIntrospector
Defined in: src/scaffold/SchemaIntrospector.ts:33
Queries the live database to produce an array of IntrospectedTable descriptors. Supports PostgreSQL, MySQL, SQL Server, and SQLite.
Constructors
Constructor
new SchemaIntrospector(
adapter):SchemaIntrospector
Defined in: src/scaffold/SchemaIntrospector.ts:34
Parameters
| Parameter | Type |
|---|---|
adapter | IDbAdapter |
Returns
SchemaIntrospector
Methods
introspect()
introspect(
filterTables?,includeViews?):Promise<IntrospectedTable[]>
Defined in: src/scaffold/SchemaIntrospector.ts:36
Parameters
| Parameter | Type | Default value |
|---|---|---|
filterTables? | string[] | undefined |
includeViews? | boolean | false |
Returns
Promise<IntrospectedTable[]>
introspectViews()
introspectViews():
Promise<string[]>
Defined in: src/scaffold/SchemaIntrospector.ts:80
Queries the database for all view names.
Returns
Promise<string[]>