| Package | Description |
|---|---|
| gudusoft.gsqlparser |
Provides the class
TGSqlParser necessary to create a SQL Parser and the classes a SQL Parser uses
internally to handle different SQL dialects. |
| gudusoft.gsqlparser.catalog.diagnostic | |
| gudusoft.gsqlparser.dlineage.comment | |
| gudusoft.gsqlparser.dlineage.dataflow.listener | |
| gudusoft.gsqlparser.dlineage.dataflow.model | |
| gudusoft.gsqlparser.dlineage.impl.powerquery | |
| gudusoft.gsqlparser.nodes |
Provides the classes represents various SQL query parse tree node.
|
| gudusoft.gsqlparser.pp.mediator.type | |
| gudusoft.gsqlparser.pp.stmtformatter | |
| gudusoft.gsqlparser.pp2.region | |
| gudusoft.gsqlparser.pp2.render | |
| gudusoft.gsqlparser.sqlenv | |
| gudusoft.gsqlparser.util |
| Modifier and Type | Method and Description |
|---|---|
TGSqlParser |
TParserPool.borrowParser(EDbVendor vendor)
Borrows a parser from the pool for the specified vendor.
|
TGSqlParser |
TSourceTokenList.getGsqlparser() |
| Modifier and Type | Method and Description |
|---|---|
T |
TParserPool.ParserFunction.apply(TGSqlParser parser) |
static boolean |
TCustomSqlStatement.isMySQLDialect(EDbVendor vendor,
TGSqlParser parser)
Whether SQL of
vendor parsed by parser is MySQL SQL: EDbVendor.dbvmysql, or
EDbVendor.dbvoceanbase in a MySQL or system tenant. |
boolean |
ISQLStatementHandle.processSQLStatement(TCustomSqlStatement sqlStatement,
TGSqlParser sqlParser) |
void |
TParserPool.returnParser(EDbVendor vendor,
TGSqlParser parser)
Returns a parser to the pool for reuse.
|
void |
TSourceTokenList.setGsqlparser(TGSqlParser gsqlparser) |
| Modifier and Type | Method and Description |
|---|---|
static CatalogDiagnosticSink |
CatalogDiagnosticSink.toParser(TGSqlParser parser)
Surface WARN and ERROR diagnostics as
EErrorType.spwarningdbobject
entries on getSyntaxErrors(). |
| Modifier and Type | Method and Description |
|---|---|
void |
CommentBindingCollector.capture(String key,
TGSqlParser parser,
boolean parsePartial) |
void |
CommentBindingCollector.captureDerived(TGSqlParser parser,
boolean parsePartial) |
| Modifier and Type | Method and Description |
|---|---|
void |
DataFlowHandleListener.endAnalyzeDataFlow(TGSqlParser sqlparser) |
void |
DataFlowHandleAdapter.endAnalyzeDataFlow(TGSqlParser sqlparser) |
void |
DataFlowHandleListener.startAnalyzeDataFlow(TGSqlParser sqlparser) |
void |
DataFlowHandleAdapter.startAnalyzeDataFlow(TGSqlParser sqlparser) |
| Modifier and Type | Method and Description |
|---|---|
void |
SqllrObservations.parsedUnit(TGSqlParser parser,
int parseResult)
The analyzer parsed the unit it announced with
SqllrObservations.beginUnit(java.lang.String). |
| Modifier and Type | Field and Description |
|---|---|
TGSqlParser |
PowerQueryLineageResult.NativeQueryRef.innerParser |
| Modifier and Type | Method and Description |
|---|---|
TGSqlParser |
TParseTreeNode.getGsqlparser()
The parser that generate this node.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TParseTreeNode.setGsqlparser(TGSqlParser gsqlparser) |
void |
TNodeFactory.setGsqlParser(TGSqlParser parser) |
| Modifier and Type | Method and Description |
|---|---|
void |
NameCaseMediator.load(TGSqlParser parser,
GFmtOpt option)
Record the names of
parser's statements, replacing any earlier record. |
void |
NameCaseMediator.reload(TGSqlParser parser,
GFmtOpt option)
After a re-parse of the same text (comment removal): the names of the
new parse, if the settings applied to the original one.
|
| Modifier and Type | Method and Description |
|---|---|
static TGSqlParser |
SqlFormatter.preHandleRemoveComment(TGSqlParser parser) |
| Modifier and Type | Method and Description |
|---|---|
String |
SqlFormatter.format(TGSqlParser parser,
GFmtOpt option) |
static String |
FormatterFactory.pp(TGSqlParser parser,
GFmtOpt option) |
static String |
FormatterFactory.pp2(TGSqlParser parser,
GFmtOpt opt)
Convenience overload mirroring the
FormatterFactory.pp(TGSqlParser, GFmtOpt)
signature: returns the formatted text directly, so it is a drop-in
replacement for a pp() call. |
static Pp2FormatResult |
FormatterFactory.pp2(TGSqlParser parser,
Pp2FormatOptions opts)
Fault-tolerant formatter entry point (pp2).
|
static TGSqlParser |
SqlFormatter.preHandleRemoveComment(TGSqlParser parser) |
| Modifier and Type | Method and Description |
|---|---|
TGSqlParser |
ParserPool.borrow()
Return the pooled parser, allocating it on the first call.
|
TGSqlParser |
RegionParseOutcome.getParser()
The
TGSqlParser that produced the AST for this outcome. |
| Modifier and Type | Method and Description |
|---|---|
protected String |
GuardedAstDelegate.invokePpFormatter(TGSqlParser parser,
GFmtOpt opt)
Indirect-call seam so tests can subclass and substitute a deterministic
stand-in for
FormatterFactory.pp(). |
protected String |
GuardedAstDelegate.renderWith(TGSqlParser parser,
String inputSlice,
Pp2FormatOptions opts)
Render via the supplied parser.
|
protected String |
GuardedAstDelegate.renderWith(TGSqlParser parser,
String inputSlice,
Pp2FormatOptions opts,
boolean stringsAtStart)
GuardedAstDelegate.renderWith(TGSqlParser, String, Pp2FormatOptions) for a region after a statement
that turned the quoted-identifier option off when stringsAtStart: the region's check
then refuses any change to a double-quoted text. |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
TSQLEnv.isAliasVisibleInHaving(EDbVendor vendor,
TGSqlParser parser)
Dialects whose
TSQLEnv.isAliasReferenceForbidden entry is true, yet whose HAVING clause can name a
SELECT-list alias of its own SELECT block, so SELECT o.amount AS amt FROM orders o GROUP BY o.amount
HAVING amt > 1 reads the alias:
MySQL, and OceanBase in a MySQL tenant: "MySQL ... |
static boolean |
TSQLEnv.isHavingAliasOutrankingUngroupedColumn(EDbVendor vendor,
TGSqlParser parser)
MySQL, and OceanBase in a MySQL tenant: a HAVING name that is both a SELECT-list alias and a column of the FROM
clause is the column only when GROUP BY names that column; otherwise it is the alias.
|
| Constructor and Description |
|---|
joinRelationAnalyze(TGSqlParser sqlparser,
boolean showLocation) |