public interface DynamicSqlAnalyzer
Implementations extract table and routine references from dynamic SQL strings found in stored procedures (EXECUTE IMMEDIATE, sp_executesql, EXEC(), PostgreSQL EXECUTE, etc.).
| Modifier and Type | Method and Description |
|---|---|
List<DynamicSqlExtraction> |
analyze(EDbVendor vendor,
TParseTreeNode sourceNode,
String sqlText,
String owningRoutineId,
AnalyzerV2Config config)
Analyzes a dynamic SQL occurrence and extracts references.
|
List<DynamicSqlExtraction> analyze(EDbVendor vendor, TParseTreeNode sourceNode, String sqlText, String owningRoutineId, AnalyzerV2Config config)
vendor - database vendor for parsing the inner SQLsourceNode - AST node containing the dynamic SQL (for anchor)sqlText - the dynamic SQL text (may be literal, variable, or expression)owningRoutineId - the routine ID that contains this dynamic SQLconfig - analyzer configuration