Class MsSelect
java.lang.Object
org.pgcodekeeper.core.database.base.parser.antlr.AbstractExpr
org.pgcodekeeper.core.database.ms.parser.expr.MsAbstractExpr
org.pgcodekeeper.core.database.ms.parser.expr.MsAbstractExprWithNmspc<TSQLParser.Select_statementContext>
org.pgcodekeeper.core.database.ms.parser.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, IMetaContainer 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.database.ms.parser.expr.MsAbstractExprWithNmspc
addRawTableReference, addReference, findReferenceMethods inherited from class org.pgcodekeeper.core.database.base.parser.antlr.AbstractExpr
addDependency, addDependency, addDependency, addReference, addVariable, getDependencies
-
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
-