Skip to content

BeechCMS


BeechCMS / @beechcms/core / introspectTable

Function: introspectTable() ​

introspectTable(executor, table): Promise<LiveTable>

Physical state of one table. A table SQLite does not know returns { exists: false } with empty lists rather than throwing: "missing" is a legitimate diff outcome, not an error.

PRAGMA table_info answers an unknown table with zero rows on the SQLite path and raises on some wrangler paths, so both outcomes collapse to the same result.

Parameters ​

executor ​

SchemaQueryExecutor

table ​

string

Returns ​

Promise<LiveTable>