@sqlrooms/duckdb / findTableInSchemaTrees
Function: findTableInSchemaTrees()
findTableInSchemaTrees(
schemaTrees,qualifiedName,makeQualifiedTableName):TableNodeObject|undefined
Finds a specific table by its qualified name in the schema tree.
Parameters
| Parameter | Type | Description |
|---|---|---|
schemaTrees | DbSchemaNode[] | undefined | Array of database schema tree nodes |
qualifiedName | string | Qualified table name (e.g., "database.schema.table") |
makeQualifiedTableName | (parts) => object | Function to create qualified table names for comparison |
Returns
TableNodeObject | undefined
The table object if found, undefined otherwise
