Class PgSelect
java.lang.Object
org.pgcodekeeper.core.database.base.parser.antlr.AbstractExpr
org.pgcodekeeper.core.database.pg.parser.expr.PgAbstractExpr
org.pgcodekeeper.core.database.pg.parser.expr.PgAbstractExprWithNmspc<SQLParser.Select_stmtContext>
org.pgcodekeeper.core.database.pg.parser.expr.PgSelect
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(PgSelectStmt select) Analyzes a SELECT statement wrapper and returns the result types.Methods inherited from class org.pgcodekeeper.core.database.pg.parser.expr.PgAbstractExprWithNmspc
addNamespaceVariable, addRawTableReference, addReference, declareNamespaceVar, findReferenceMethods inherited from class org.pgcodekeeper.core.database.pg.parser.expr.PgAbstractExpr
setFullAnalyzeMethods inherited from class org.pgcodekeeper.core.database.base.parser.antlr.AbstractExpr
addDependency, addDependency, addDependency, addReference, addVariable, getDependencies
-
Constructor Details
-
PgSelect
Creates a Select parser with meta container.- Parameters:
db- the meta container with schema information
-
-
Method Details
-
analyze
Description copied from class:PgAbstractExprWithNmspcAnalyzes the given rule context.- Specified by:
analyzein classPgAbstractExprWithNmspc<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
-