Skip to main content

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​

ParameterType
adapterIDbAdapter

Returns​

SchemaIntrospector

Methods​

introspect()​

introspect(filterTables?, includeViews?): Promise<IntrospectedTable[]>

Defined in: src/scaffold/SchemaIntrospector.ts:36

Parameters​

ParameterTypeDefault value
filterTables?string[]undefined
includeViews?booleanfalse

Returns​

Promise<IntrospectedTable[]>


introspectViews()​

introspectViews(): Promise<string[]>

Defined in: src/scaffold/SchemaIntrospector.ts:80

Queries the database for all view names.

Returns​

Promise<string[]>