Class Select
java.lang.Object
org.pgcodekeeper.core.parsers.antlr.pg.expr.AbstractExpr
org.pgcodekeeper.core.parsers.antlr.pg.expr.AbstractExprWithNmspc<SQLParser.Select_stmtContext>
org.pgcodekeeper.core.parsers.antlr.pg.expr.Select
Parser for SELECT statements with namespace support.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionanalyze(SQLParser.Perform_stmtContext perform) Analyzes a PERFORM statement and returns the result types.Analyzes a SELECT statement without parentheses and returns the result types.analyze(SQLParser.Select_stmtContext ruleCtx) Analyzes the given rule context.analyze(SelectStmt select) Analyzes a SELECT statement wrapper and returns the result types.Methods inherited from class org.pgcodekeeper.core.parsers.antlr.pg.expr.AbstractExprWithNmspc
addNamespaceVariable, addRawTableReference, addReference, declareNamespaceVarMethods inherited from class org.pgcodekeeper.core.parsers.antlr.pg.expr.AbstractExpr
getDepcies, setFullAnaLyze
-
Constructor Details
-
Select
Creates a Select parser with meta container.- Parameters:
db- the meta container with schema information
-
-
Method Details
-
analyze
Description copied from class:AbstractExprWithNmspcAnalyzes the given rule context.- Specified by:
analyzein classAbstractExprWithNmspc<SQLParser.Select_stmtContext>- Parameters:
ruleCtx- the parser rule context to analyze- Returns:
- list of modifiable pairs containing analyzed results
-
analyze
Analyzes a SELECT statement without parentheses and returns the result types.- Parameters:
ruleCtx- the SELECT statement context to analyze- Returns:
- list of modified pairs containing analyzed results
-
analyze
Analyzes a SELECT statement wrapper and returns the result types.- Parameters:
select- the SELECT statement wrapper to analyze- Returns:
- list of modified pairs containing analyzed results
-
analyze
Analyzes a PERFORM statement and returns the result types.- Parameters:
perform- the PERFORM statement context to analyze- Returns:
- list of modified pairs containing analyzed results
-