| 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.parser |
| Modifier and Type | Class and Description |
|---|---|
class |
TParserAccessSql |
class |
TParserAnsi |
class |
TParserAthena |
class |
TParserBigquery |
class |
TParserClickhouse |
class |
TParserCouchbase |
class |
TParserDatabricks |
class |
TParserDax |
class |
TParserDb2Sql |
class |
TParserDoris |
class |
TParserFlink |
class |
TParserGaussDB |
class |
TParserGreenplum |
class |
TParserHana |
class |
TParserHive |
class |
TParserImpala |
class |
TParserInformix |
class |
TParserMdx |
class |
TParserMssqlSql |
class |
TParserMysqlSql |
class |
TParserNetezza |
class |
TParserOdbc |
class |
TParserOpenedge |
class |
TParserOraclePLSql |
class |
TParserOracleSql |
class |
TParserPostgresql |
class |
TParserPresto |
class |
TParserRedshift |
class |
TParserSnowflake |
class |
TParserSoql |
class |
TParserSparksql |
class |
TParserSqlite |
class |
TParserStarrocksSql |
class |
TParserSybase |
class |
TParserTeradata |
class |
TParserVertica |
| Modifier and Type | Field and Description |
|---|---|
TCustomParser |
TCustomSqlStatement.parser
Parser used to parse this statement.
|
TCustomParser |
TCustomSqlStatement.plsqlparser
PLSQL parser used to parse this statement.
|
| Modifier and Type | Method and Description |
|---|---|
TCustomParser |
SqlParseResult.getParser()
Get the parser instance (for backward compatibility).
|
protected TCustomParser |
PostgreSqlParser.getParser(ParserContext context,
TSourceTokenList tokens)
Return the PostgreSQL SQL parser instance with updated token list.
|
protected TCustomParser |
DatabricksSqlParser.getParser(ParserContext context,
TSourceTokenList tokens)
Return the Databricks SQL parser instance with updated token list.
|
protected TCustomParser |
InformixSqlParser.getParser(ParserContext context,
TSourceTokenList tokens)
Return the Informix SQL parser instance with updated token list.
|
protected TCustomParser |
DorisSqlParser.getParser(ParserContext context,
TSourceTokenList tokens) |
protected TCustomParser |
OdbcSqlParser.getParser(ParserContext context,
TSourceTokenList tokens)
Return the ODBC SQL parser instance with updated token list.
|
protected TCustomParser |
HiveSqlParser.getParser(ParserContext context,
TSourceTokenList tokens)
Return the Hive SQL parser instance with updated token list.
|
protected TCustomParser |
VerticaSqlParser.getParser(ParserContext context,
TSourceTokenList tokens)
Return the Vertica SQL parser instance with updated token list.
|
protected TCustomParser |
BigQuerySqlParser.getParser(ParserContext context,
TSourceTokenList tokens)
Return the BigQuery SQL parser instance with updated token list.
|
protected TCustomParser |
SoqlSqlParser.getParser(ParserContext context,
TSourceTokenList tokens)
Return the SOQL parser instance with updated token list.
|
protected TCustomParser |
MdxSqlParser.getParser(ParserContext context,
TSourceTokenList tokens)
Return the MDX parser instance with updated token list.
|
protected TCustomParser |
NetezzaSqlParser.getParser(ParserContext context,
TSourceTokenList tokens)
Return the Netezza SQL parser instance with updated token list.
|
protected TCustomParser |
TeradataSqlParser.getParser(ParserContext context,
TSourceTokenList tokens) |
protected TCustomParser |
SparksqlSqlParser.getParser(ParserContext context,
TSourceTokenList tokens)
Return the SparkSQL parser instance with updated token list.
|
protected TCustomParser |
AthenaSqlParser.getParser(ParserContext context,
TSourceTokenList tokens) |
protected TCustomParser |
AnsiSqlParser.getParser(ParserContext context,
TSourceTokenList tokens)
Return the ANSI SQL parser instance with updated token list.
|
protected TCustomParser |
OracleSqlParser.getParser(ParserContext context,
TSourceTokenList tokens)
Return the Oracle SQL parser instance with updated token list.
|
protected TCustomParser |
SnowflakeSqlParser.getParser(ParserContext context,
TSourceTokenList tokens)
Return the Snowflake SQL parser instance with updated token list.
|
protected TCustomParser |
ImpalaSqlParser.getParser(ParserContext context,
TSourceTokenList tokens)
Return the Impala SQL parser instance with updated token list.
|
protected TCustomParser |
RedshiftSqlParser.getParser(ParserContext context,
TSourceTokenList tokens)
Return the Redshift SQL parser instance with updated token list.
|
protected TCustomParser |
SybaseSqlParser.getParser(ParserContext context,
TSourceTokenList tokens)
Return the Sybase parser instance with updated token list.
|
protected TCustomParser |
Db2SqlParser.getParser(ParserContext context,
TSourceTokenList tokens)
Return the DB2 SQL parser instance with updated token list.
|
protected TCustomParser |
PrestoSqlParser.getParser(ParserContext context,
TSourceTokenList tokens)
Return the Presto SQL parser instance with updated token list.
|
protected abstract TCustomParser |
AbstractSqlParser.getParser(ParserContext context,
TSourceTokenList tokens)
Get the main parser for this vendor.
|
protected TCustomParser |
HanaSqlParser.getParser(ParserContext context,
TSourceTokenList tokens) |
protected TCustomParser |
OpenEdgeSqlParser.getParser(ParserContext context,
TSourceTokenList tokens)
Return the OpenEdge SQL parser instance with updated token list.
|
protected TCustomParser |
FlinkSqlParser.getParser(ParserContext context,
TSourceTokenList tokens) |
protected TCustomParser |
SqliteSqlParser.getParser(ParserContext context,
TSourceTokenList tokens) |
protected TCustomParser |
SparkSqlParser.getParser(ParserContext context,
TSourceTokenList tokens) |
protected TCustomParser |
MssqlSqlParser.getParser(ParserContext context,
TSourceTokenList tokens)
Return the SQL Server SQL parser instance with updated token list.
|
protected TCustomParser |
ClickhouseSqlParser.getParser(ParserContext context,
TSourceTokenList tokens) |
protected TCustomParser |
CouchbaseSqlParser.getParser(ParserContext context,
TSourceTokenList tokens)
Return the Couchbase SQL parser instance with updated token list.
|
protected TCustomParser |
MySqlSqlParser.getParser(ParserContext context,
TSourceTokenList tokens)
Return the MySQL SQL parser instance with updated token list.
|
protected TCustomParser |
StarrocksSqlParser.getParser(ParserContext context,
TSourceTokenList tokens) |
protected TCustomParser |
GaussDbSqlParser.getParser(ParserContext context,
TSourceTokenList tokens) |
protected TCustomParser |
DaxSqlParser.getParser(ParserContext context,
TSourceTokenList tokens)
Return the DAX SQL parser instance with updated token list.
|
protected TCustomParser |
GreenplumSqlParser.getParser(ParserContext context,
TSourceTokenList tokens)
Return the Greenplum SQL parser instance with updated token list.
|
TCustomParser |
SqlParseResult.getSecondaryParser()
Get the secondary parser instance (for Oracle PL/SQL parser).
|
protected TCustomParser |
DatabricksSqlParser.getSecondaryParser(ParserContext context,
TSourceTokenList tokens)
Databricks uses a single parser, no secondary parser needed.
|
protected TCustomParser |
InformixSqlParser.getSecondaryParser(ParserContext context,
TSourceTokenList tokens)
No secondary parser for Informix (only Oracle has dual parsers).
|
protected TCustomParser |
HiveSqlParser.getSecondaryParser(ParserContext context,
TSourceTokenList tokens)
Hive does not use a secondary parser (unlike Oracle with PL/SQL).
|
protected TCustomParser |
VerticaSqlParser.getSecondaryParser(ParserContext context,
TSourceTokenList tokens)
Vertica does not use a secondary parser (unlike Oracle with PL/SQL parser).
|
protected TCustomParser |
BigQuerySqlParser.getSecondaryParser(ParserContext context,
TSourceTokenList tokens)
BigQuery does not use a secondary parser (unlike Oracle with PL/SQL).
|
protected TCustomParser |
MdxSqlParser.getSecondaryParser(ParserContext context,
TSourceTokenList tokens)
MDX doesn't have a secondary parser.
|
protected TCustomParser |
NetezzaSqlParser.getSecondaryParser(ParserContext context,
TSourceTokenList tokens)
Return null for secondary parser (Netezza only uses one parser).
|
protected TCustomParser |
TeradataSqlParser.getSecondaryParser(ParserContext context,
TSourceTokenList tokens) |
protected TCustomParser |
AthenaSqlParser.getSecondaryParser(ParserContext context,
TSourceTokenList tokens) |
protected TCustomParser |
OracleSqlParser.getSecondaryParser(ParserContext context,
TSourceTokenList tokens)
Return the Oracle PL/SQL parser instance with updated token list.
|
protected TCustomParser |
SnowflakeSqlParser.getSecondaryParser(ParserContext context,
TSourceTokenList tokens)
Snowflake does not use a secondary parser (unlike Oracle with PL/SQL).
|
protected TCustomParser |
RedshiftSqlParser.getSecondaryParser(ParserContext context,
TSourceTokenList tokens)
Redshift doesn't have a secondary parser.
|
protected TCustomParser |
PrestoSqlParser.getSecondaryParser(ParserContext context,
TSourceTokenList tokens)
Presto does not have a secondary parser (only Oracle has PL/SQL parser).
|
protected TCustomParser |
AbstractSqlParser.getSecondaryParser(ParserContext context,
TSourceTokenList tokens)
Get secondary parser (e.g., PL/SQL for Oracle).
|
protected TCustomParser |
HanaSqlParser.getSecondaryParser(ParserContext context,
TSourceTokenList tokens) |
protected TCustomParser |
FlinkSqlParser.getSecondaryParser(ParserContext context,
TSourceTokenList tokens) |
protected TCustomParser |
SparkSqlParser.getSecondaryParser(ParserContext context,
TSourceTokenList tokens) |
protected TCustomParser |
GaussDbSqlParser.getSecondaryParser(ParserContext context,
TSourceTokenList tokens) |
protected TCustomParser |
DaxSqlParser.getSecondaryParser(ParserContext context,
TSourceTokenList tokens)
DAX does not use a secondary parser.
|
protected TCustomParser |
GreenplumSqlParser.getSecondaryParser(ParserContext context,
TSourceTokenList tokens)
Greenplum doesn't use secondary parser (unlike Oracle with PL/SQL parser).
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
PostgreSqlParser.onRawStatementComplete(ParserContext context,
TCustomSqlStatement statement,
TCustomParser mainParser,
TCustomParser secondaryParser,
TStatementList statementList,
boolean isLastStatement,
SqlParseResult.Builder builder)
Override onRawStatementComplete to add PostgreSQL-specific processing.
|
protected void |
AbstractSqlParser.onRawStatementComplete(ParserContext context,
TCustomSqlStatement statement,
TCustomParser mainParser,
TCustomParser secondaryParser,
TStatementList statementList,
boolean isLastStatement,
SqlParseResult.Builder builder)
Hook method called when a raw statement is complete.
|
SqlParseResult.Builder |
SqlParseResult.Builder.parser(TCustomParser parser)
Set parser instance (for backward compatibility).
|
protected TStatementList |
PostgreSqlParser.performParsing(ParserContext context,
TCustomParser parser,
TCustomParser secondaryParser,
TSourceTokenList tokens,
TStatementList rawStatements)
Perform full parsing of statements with syntax checking.
|
protected TStatementList |
DatabricksSqlParser.performParsing(ParserContext context,
TCustomParser parser,
TCustomParser secondaryParser,
TSourceTokenList tokens,
TStatementList rawStatements)
Parse all raw statements to build AST.
|
protected TStatementList |
InformixSqlParser.performParsing(ParserContext context,
TCustomParser parser,
TCustomParser secondaryParser,
TSourceTokenList tokens,
TStatementList rawStatements)
Parse all raw statements.
|
protected TStatementList |
DorisSqlParser.performParsing(ParserContext context,
TCustomParser parser,
TCustomParser secondaryParser,
TSourceTokenList tokens,
TStatementList rawStatements) |
protected TStatementList |
OdbcSqlParser.performParsing(ParserContext context,
TCustomParser parser,
TCustomParser secondaryParser,
TSourceTokenList tokens,
TStatementList rawStatements)
Perform full parsing of statements with syntax checking.
|
protected TStatementList |
HiveSqlParser.performParsing(ParserContext context,
TCustomParser parser,
TCustomParser secondaryParser,
TSourceTokenList tokens,
TStatementList rawStatements)
Parse all raw SQL statements.
|
protected TStatementList |
VerticaSqlParser.performParsing(ParserContext context,
TCustomParser parser,
TCustomParser secondaryParser,
TSourceTokenList tokens,
TStatementList rawStatements)
Perform full parsing of statements with syntax checking.
|
protected TStatementList |
BigQuerySqlParser.performParsing(ParserContext context,
TCustomParser parser,
TCustomParser secondaryParser,
TSourceTokenList tokens,
TStatementList rawStatements)
Parse all SQL statements after tokenization and raw extraction.
|
protected TStatementList |
SoqlSqlParser.performParsing(ParserContext context,
TCustomParser parser,
TCustomParser secondaryParser,
TSourceTokenList tokens,
TStatementList rawStatements)
Perform full parsing of statements with syntax checking.
|
protected TStatementList |
MdxSqlParser.performParsing(ParserContext context,
TCustomParser parser,
TCustomParser secondaryParser,
TSourceTokenList tokens,
TStatementList rawStatements)
Perform full parsing of statements with syntax checking.
|
protected TStatementList |
NetezzaSqlParser.performParsing(ParserContext context,
TCustomParser parser,
TCustomParser secondaryParser,
TSourceTokenList tokens,
TStatementList rawStatements)
Perform full parsing of statements with syntax checking.
|
protected TStatementList |
TeradataSqlParser.performParsing(ParserContext context,
TCustomParser parser,
TCustomParser secondaryParser,
TSourceTokenList tokens,
TStatementList rawStatements) |
protected TStatementList |
SparksqlSqlParser.performParsing(ParserContext context,
TCustomParser parser,
TCustomParser secondaryParser,
TSourceTokenList tokens,
TStatementList rawStatements)
Perform full parsing of statements with syntax checking.
|
protected TStatementList |
AthenaSqlParser.performParsing(ParserContext context,
TCustomParser parser,
TCustomParser secondaryParser,
TSourceTokenList tokens,
TStatementList rawStatements) |
protected TStatementList |
AnsiSqlParser.performParsing(ParserContext context,
TCustomParser parser,
TCustomParser secondaryParser,
TSourceTokenList tokens,
TStatementList rawStatements)
Perform full parsing on raw ANSI SQL statements.
|
protected TStatementList |
OracleSqlParser.performParsing(ParserContext context,
TCustomParser parser,
TCustomParser secondaryParser,
TSourceTokenList tokens,
TStatementList rawStatements)
Perform full parsing of statements with syntax checking.
|
protected TStatementList |
SnowflakeSqlParser.performParsing(ParserContext context,
TCustomParser parser,
TCustomParser secondaryParser,
TSourceTokenList tokens,
TStatementList rawStatements)
Perform full parsing of statements with syntax checking.
|
protected TStatementList |
ImpalaSqlParser.performParsing(ParserContext context,
TCustomParser parser,
TCustomParser secondaryParser,
TSourceTokenList tokens,
TStatementList rawStatements)
Perform full parsing of statements with syntax checking.
|
protected TStatementList |
RedshiftSqlParser.performParsing(ParserContext context,
TCustomParser parser,
TCustomParser secondaryParser,
TSourceTokenList tokens,
TStatementList rawStatements)
Perform full parsing of statements with syntax checking.
|
protected TStatementList |
SybaseSqlParser.performParsing(ParserContext context,
TCustomParser parser,
TCustomParser secondaryParser,
TSourceTokenList tokens,
TStatementList rawStatements)
Perform full parsing of statements with syntax checking.
|
protected TStatementList |
Db2SqlParser.performParsing(ParserContext context,
TCustomParser parser,
TCustomParser secondaryParser,
TSourceTokenList tokens,
TStatementList rawStatements)
Perform full parsing on raw DB2 SQL statements.
|
protected TStatementList |
PrestoSqlParser.performParsing(ParserContext context,
TCustomParser parser,
TCustomParser secondaryParser,
TSourceTokenList tokens,
TStatementList rawStatements)
Perform full parsing of statements with syntax checking.
|
protected abstract TStatementList |
AbstractSqlParser.performParsing(ParserContext context,
TCustomParser parser,
TCustomParser secondaryParser,
TSourceTokenList tokens,
TStatementList rawStatements)
Perform actual parsing with syntax checking.
|
protected TStatementList |
HanaSqlParser.performParsing(ParserContext context,
TCustomParser parser,
TCustomParser secondaryParser,
TSourceTokenList tokens,
TStatementList rawStatements) |
protected TStatementList |
OpenEdgeSqlParser.performParsing(ParserContext context,
TCustomParser parser,
TCustomParser secondaryParser,
TSourceTokenList tokens,
TStatementList rawStatements)
Perform full parsing of statements with syntax checking.
|
protected TStatementList |
FlinkSqlParser.performParsing(ParserContext context,
TCustomParser mainParser,
TCustomParser secondaryParser,
TSourceTokenList tokens,
TStatementList rawStatements) |
protected TStatementList |
SqliteSqlParser.performParsing(ParserContext context,
TCustomParser parser,
TCustomParser secondaryParser,
TSourceTokenList tokens,
TStatementList rawStatements) |
protected TStatementList |
SparkSqlParser.performParsing(ParserContext context,
TCustomParser mainParser,
TCustomParser secondaryParser,
TSourceTokenList tokens,
TStatementList rawStatements) |
protected TStatementList |
MssqlSqlParser.performParsing(ParserContext context,
TCustomParser parser,
TCustomParser secondaryParser,
TSourceTokenList tokens,
TStatementList rawStatements)
Perform full parsing of statements with syntax checking.
|
protected TStatementList |
ClickhouseSqlParser.performParsing(ParserContext context,
TCustomParser parser,
TCustomParser secondaryParser,
TSourceTokenList tokens,
TStatementList rawStatements) |
protected TStatementList |
CouchbaseSqlParser.performParsing(ParserContext context,
TCustomParser parser,
TCustomParser secondaryParser,
TSourceTokenList tokens,
TStatementList rawStatements)
Perform full parsing of statements with syntax checking.
|
protected TStatementList |
MySqlSqlParser.performParsing(ParserContext context,
TCustomParser parser,
TCustomParser secondaryParser,
TSourceTokenList tokens,
TStatementList rawStatements)
Perform full parsing of statements with syntax checking.
|
protected TStatementList |
StarrocksSqlParser.performParsing(ParserContext context,
TCustomParser parser,
TCustomParser secondaryParser,
TSourceTokenList tokens,
TStatementList rawStatements) |
protected TStatementList |
GaussDbSqlParser.performParsing(ParserContext context,
TCustomParser parser,
TCustomParser secondaryParser,
TSourceTokenList tokens,
TStatementList rawStatements) |
protected TStatementList |
DaxSqlParser.performParsing(ParserContext context,
TCustomParser parser,
TCustomParser secondaryParser,
TSourceTokenList tokens,
TStatementList rawStatements)
Parse all raw DAX statements.
|
protected TStatementList |
GreenplumSqlParser.performParsing(ParserContext context,
TCustomParser mainParser,
TCustomParser secondaryParser,
TSourceTokenList tokens,
TStatementList rawStatements)
Parse all statements in the statement list.
|
SqlParseResult.Builder |
SqlParseResult.Builder.secondaryParser(TCustomParser secondaryParser)
Set secondary parser instance (for Oracle PL/SQL parser).
|