Skip to content

@sqlrooms/duckdb / findTableInSchemaTrees

Function: findTableInSchemaTrees()

findTableInSchemaTrees(schemaTrees, qualifiedName, makeQualifiedTableName): TableNodeObject | undefined

Finds a specific table by its qualified name in the schema tree.

Parameters

ParameterTypeDescription
schemaTreesDbSchemaNode[] | undefinedArray of database schema tree nodes
qualifiedNamestringQualified table name (e.g., "database.schema.table")
makeQualifiedTableName(parts) => objectFunction to create qualified table names for comparison

Returns

TableNodeObject | undefined

The table object if found, undefined otherwise