Class MsSelect
java.lang.Object
org.pgcodekeeper.core.parsers.antlr.ms.expr.MsAbstractExpr
org.pgcodekeeper.core.parsers.antlr.ms.expr.MsAbstractExprWithNmspc<TSQLParser.Select_statementContext>
org.pgcodekeeper.core.parsers.antlr.ms.expr.MsSelect
Microsoft SQL SELECT statement analyzer.
Processes SELECT statements including CTEs, subqueries, JOINs, and various SQL clauses
to extract database object dependencies and column information.
-
Constructor Summary
ConstructorsConstructorDescriptionMsSelect(String schema, MetaContainer meta) Creates a new Microsoft SQL SELECT analyzer with the specified schema and metadata. -
Method Summary
Modifier and TypeMethodDescriptionAnalyzes the given rule context and returns a list of column names.Analyzes a SELECT statement without parentheses.analyze(MsSelectStmt select) Analyzes a Microsoft SQL SELECT statement wrapper.Methods inherited from class org.pgcodekeeper.core.parsers.antlr.ms.expr.MsAbstractExprWithNmspc
addRawTableReference, addReferenceMethods inherited from class org.pgcodekeeper.core.parsers.antlr.ms.expr.MsAbstractExpr
getDepcies
-
Constructor Details
-
MsSelect
Creates a new Microsoft SQL SELECT analyzer with the specified schema and metadata.- Parameters:
schema- the current schema contextmeta- the metadata container for database schema information
-
-
Method Details
-
analyze
Description copied from class:MsAbstractExprWithNmspcAnalyzes the given rule context and returns a list of column names. Implementations should process the specific Microsoft SQL expression type and extract relevant database dependencies and column information.- Specified by:
analyzein classMsAbstractExprWithNmspc<TSQLParser.Select_statementContext>- Parameters:
ruleCtx- the parser rule context to analyze- Returns:
- list of column names found during analysis
-
analyze
Analyzes a SELECT statement without parentheses.- Parameters:
ruleCtx- the SELECT statement context to analyze- Returns:
- list of column names found during analysis
-
analyze
Analyzes a Microsoft SQL SELECT statement wrapper.- Parameters:
select- the SELECT statement wrapper to analyze- Returns:
- list of column names found during analysis
-