utils/find_referenced_tables library

Classes

ReferencedTablesVisitor
An AST-visitor that walks sql statements and finds all tables referenced in them.
TableWrite
A write to a table or view as found while analyzing a statement.
UpdatedTablesVisitor
Finds all tables that could be affected when executing a query. In contrast to ReferencedTablesVisitor, which finds all references, this visitor only collects tables a query writes to.

Enums

UpdateKind

Extensions

FindReferenceAnalysis on SqlEngine
Extension to find referenced tables prior to any analysis runs.

Functions

findReferencedTables(AstNode root) Set<Table>
Finds all tables referenced in root or a descendant.
findWrittenTables(AstNode root) Set<TableWrite>
Finds all writes to a table that occur anywhere inside the root node or a descendant.