Skip to content

@sqlrooms/duckdb / loadSchemaCatalog

Function: loadSchemaCatalog()

loadSchemaCatalog(connector, options?): Promise<SchemaWithTables[]>

Load the visible DuckDB schema catalog in one metadata query. Starts from schemas, then left-joins tables, views, and columns so empty schemas and empty attached database main schemas are preserved.

Parameters

ParameterType
connectorDuckDbConnector
optionsLoadSchemaCatalogOptions

Returns

Promise<SchemaWithTables[]>