Skip to content

@sqlrooms/duckdb / createDbSchemaTrees

Function: createDbSchemaTrees()

createDbSchemaTrees(tables): DbSchemaNode[]

Group tables by database, schema and create a tree of databases, schemas, tables, and columns.

Parameters

ParameterTypeDescription
tablesDataTable[]The tables to group

Returns

DbSchemaNode[]

An array of database nodes containing schemas, tables and columns