Source code for sqllineage.core.analyzer

from abc import abstractmethod

from sqllineage.core.holders import StatementLineageHolder


[docs]class LineageAnalyzer: """SQL Statement Level Lineage Analyzer Parser specific implementation should inherit this class and implement analyze method """
[docs] @abstractmethod def analyze(self, sql: str) -> StatementLineageHolder: """ to analyze single statement sql and store the result into :class:`sqllineage.core.holders.StatementLineageHolder`. """