| Modifier and Type | Field and Description |
|---|---|
static EDbVendor |
T123.DIALECT |
| Modifier and Type | Method and Description |
|---|---|
static void |
demo.compareResolvers(EDbVendor dbVendor,
String sqlFilePath)
Compare table and column resolution results between RESOLVER and RESOLVER2.
|
static int |
compareResolvers.compareResolvers(EDbVendor dbVendor,
String sqlFilePath)
Compare table and column resolution results between RESOLVER and RESOLVER2.
|
static void |
demo.parseJsonFile(EDbVendor db,
String jsonfile) |
| Modifier and Type | Field and Description |
|---|---|
static EDbVendor |
TGSqlParser.currentDBVendor
Deprecated.
Use
TGSqlParser.getCurrentDBVendor() and TGSqlParser.setCurrentDBVendor(EDbVendor) instead.
Direct field access is not thread-safe. |
| Modifier and Type | Method and Description |
|---|---|
static EDbVendor |
EDbVendor.fromAlias(String alias)
Get the database vendor from a string representation
|
static EDbVendor |
TGSqlParser.getCurrentDBVendor() |
EDbVendor |
TSourceToken.getDbvendor()
The database vendor which the SQL script includes this token will run against
|
EDbVendor |
TGSqlParser.getDbVendor()
The database vendor specified when creating this parser.
|
static EDbVendor |
TGSqlParser.getDBVendorByName(String dbVendorName)
Turn the string name of database to dbvendor
access: EDbVendor.dbvaccess
ansi: EDbVendor.dbvansi
bigquery: EDbVendor.dbvbigquery
couchbase: EDbVendor.dbvcouchbase
dax: EDbVendor.dbvdax
db2: EDbVendor.dbvdb2
firebird: EDbVendor.dbvfirebird
generic: EDbVendor.dbvgeneric
greenplum: EDbVendor.dbvgreenplum
hana: EDbVendor.dbvhana
hive: EDbVendor.dbvhive
impala: EDbVendor.dbvimpala
informix: EDbVendor.dbvinformix
mdx: EDbVendor.dbvmdx
mssql or sqlserver: EDbVendor.dbvmssql
mysql: EDbVendor.dbvmysql
netezza: EDbVendor.dbvnetezza
odbc: EDbVendor.dbvodbc
openedge: EDbVendor.dbvopenedge
oracle: EDbVendor.dbvoracle
postgresql or postgres: EDbVendor.dbvpostgresql
redshift: EDbVendor.dbvredshift
snowflake: EDbVendor.dbvsnowflake
sybase: EDbVendor.dbvsybase
sybasease: EDbVendor.dbvsybasease
sqlanywhere: EDbVendor.dbvsqlanywhere
sybaseiq: EDbVendor.dbvsybaseiq
teradata: EDbVendor.dbvteradata
vertica: EDbVendor.dbvvertica
|
static EDbVendor |
EDbVendor.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EDbVendor |
EDbVendor.valueOfWithDefault(String alias)
Get the database vendor from a string representation, returning dbvoracle as default if not found
|
static EDbVendor[] |
EDbVendor.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
TGSqlParser |
TParserPool.borrowParser(EDbVendor vendor)
Borrows a parser from the pool for the specified vendor.
|
static DynamicSqlProofHarness.BoundaryVerdict |
DynamicSqlProofHarness.checkLexBoundary(String prefix,
EDbVendor vendor)
Check that
prefix — the literal text before the first hole — is a
safe lexical boundary: every character lexed into complete tokens, no
open literal/comment/bracket state, balanced parens/brackets, a
fusion-safe final character, and no line-comment ambiguity on the
boundary line. |
static char |
TGSqlParser.getDelimiterChar(EDbVendor vendor)
Returns the delimiter character for the given database vendor without creating a parser instance.
|
TParserPool.PoolStatistics |
TParserPool.getStatistics(EDbVendor vendor)
Gets pool statistics for monitoring.
|
TStatementList |
TSingletonParser.getStmts(EDbVendor dbVendor,
String str) |
TSourceTokenList |
TSingletonParser.getTokens(EDbVendor dbVendor,
String str) |
static boolean |
TBaseType.isSupportLateralColumn(EDbVendor pDbvendor) |
static TConstant |
TGSqlParser.parseConstant(EDbVendor dbVendor,
String newConstant) |
static TExpression |
TGSqlParser.parseExpression(EDbVendor dbVendor,
String expr) |
static TFunctionCall |
TGSqlParser.parseFunctionCall(EDbVendor dbVendor,
String newFunction) |
static TObjectName |
TGSqlParser.parseObjectName(EDbVendor dbVendor,
String newObjectName) |
static int |
TParserPoolFactory.parseSQL(EDbVendor vendor,
String sqlText)
Convenience method to parse SQL using the shared pool.
|
static TSelectSqlStatement |
TGSqlParser.parseSubquery(EDbVendor dbVendor,
String subquery)
this method is thread safe.
|
void |
TParserPool.prewarm(EDbVendor vendor,
int count)
Pre-warms the pool by creating parsers in advance.
|
static DynamicSqlProofHarness.ProofParseResult |
DynamicSqlProofHarness.proofParse(String sql,
EDbVendor vendor)
Parse
sql with the real vendor pipeline and report whether the
parse constitutes proof-grade evidence: zero syntax errors AND zero
recovery events. |
void |
TParserPool.returnParser(EDbVendor vendor,
TGSqlParser parser)
Returns a parser to the pool for reuse.
|
TStatementList |
TSafeParserPool.safeParseSQL(EDbVendor vendor,
String sqlText)
Safe parsing method that returns statements without parser references.
|
TSourceTokenList |
TSafeParserPool.safeTokenizeSQL(EDbVendor vendor,
String sqlText)
Safe tokenization method.
|
static void |
TGSqlParser.setCurrentDBVendor(EDbVendor vendor) |
void |
TSourceToken.setDbvendor(EDbVendor dbvendor)
The database vendor which the SQL script includes this token will run against
|
static int |
TParserPoolFactory.tokenizeSQL(EDbVendor vendor,
String sqlText)
Convenience method to tokenize SQL using the shared pool.
|
static boolean |
TBaseType.verifyScript(EDbVendor dbVendor,
String src,
String target,
boolean removeTrailingSemicolon) |
<T> T |
TSafeParserPool.withParser(EDbVendor vendor,
TParserPool.ParserFunction<T> function)
Executes a function with a borrowed parser and automatically returns it.
|
<T> T |
TParserPool.withParser(EDbVendor vendor,
TParserPool.ParserFunction<T> function)
Executes a function with a borrowed parser and automatically returns it.
|
| Constructor and Description |
|---|
TCustomSqlStatement(EDbVendor dbvendor) |
TGSqlParser(EDbVendor pdbvendor)
Class constructor, create a new instance of the parser by setting the database vendor
|
| Modifier and Type | Method and Description |
|---|---|
AnalysisResult |
AnalyzerV2Facade.analyze(String sqlText,
EDbVendor vendor,
AnalyzerV2Config config)
Analyzes the given SQL/PL/SQL text and returns the analysis result.
|
AnalysisResult |
AnalyzerV2Facade.analyzeMultiple(List<String> sqlTexts,
EDbVendor vendor,
AnalyzerV2Config config)
Analyzes multiple SQL/PL/SQL files.
|
AnalysisResult |
AnalyzerV2Facade.analyzeMultipleWithFileId(List<SqlScriptInput> inputs,
EDbVendor vendor,
AnalyzerV2Config config)
Analyzes multiple SQL scripts with file identifiers for cross-script traceability.
|
| Modifier and Type | Method and Description |
|---|---|
EDbVendor |
CatalogLoadOptions.vendor() |
| Modifier and Type | Method and Description |
|---|---|
static CatalogRuntime |
CatalogLoaders.fromProvider(CatalogProvider provider,
CatalogProviderConfig config,
EDbVendor vendor)
Vendor-explicit overload of
CatalogLoaders.fromProvider(CatalogProvider, CatalogProviderConfig). |
CatalogLoadOptions.Builder |
CatalogLoadOptions.Builder.vendor(EDbVendor v) |
| Modifier and Type | Method and Description |
|---|---|
EDbVendor |
UnifiedCatalogModel.vendor() |
EDbVendor |
IdentifierConfig.vendor() |
| Modifier and Type | Method and Description |
|---|---|
static IdentifierConfig |
IdentifierConfig.defaultsFor(EDbVendor vendor)
Sensible defaults for the supplied vendor.
|
UnifiedCatalogModel.Builder |
UnifiedCatalogModel.Builder.vendor(EDbVendor v) |
IdentifierConfig.Builder |
IdentifierConfig.Builder.vendor(EDbVendor v) |
| Modifier and Type | Method and Description |
|---|---|
EDbVendor |
InMemoryCatalogSnapshot.vendor() |
EDbVendor |
CatalogContext.vendor() |
EDbVendor |
CatalogQuery.vendor() |
EDbVendor |
CatalogRuntime.vendor() |
EDbVendor |
CatalogQualifiedName.vendor() |
EDbVendor |
CatalogSnapshot.vendor() |
| Modifier and Type | Method and Description |
|---|---|
static CatalogQualifiedName |
CatalogIdentifierPolicy.fromAlreadyNormalizedSegments(List<String> segments,
CatalogObjectKind kind,
EDbVendor vendor)
Build a
CatalogQualifiedName from segments that have already been normalized
by IdentifierService. |
static IdentifierService |
CatalogIdentifierPolicy.identifierServiceFor(IdentifierConfig cfg,
EDbVendor vendor)
Public façade over
CatalogIdentifierPolicy.serviceFor(IdentifierConfig, EDbVendor) for callers
outside this package (validator, readers, providers) that need an
IdentifierService matching a IdentifierConfig. |
static CatalogQualifiedName |
CatalogIdentifierPolicy.parse(String raw,
CatalogObjectKind kind,
IdentifierConfig cfg,
EDbVendor vendor)
Parse a possibly-quoted, possibly-multi-segment qualified name into a
CatalogQualifiedName with both raw and normalized segments tracked. |
InMemoryCatalogSnapshot.Builder |
InMemoryCatalogSnapshot.Builder.vendor(EDbVendor v) |
CatalogContext.Builder |
CatalogContext.Builder.vendor(EDbVendor v) |
CatalogQuery.Builder |
CatalogQuery.Builder.vendor(EDbVendor v) |
CatalogRuntime.Builder |
CatalogRuntime.Builder.vendor(EDbVendor v) |
| Modifier and Type | Method and Description |
|---|---|
EDbVendor |
StructuredAdapterContext.getDbVendor() |
EDbVendor |
StructuredDataflowDescriptor.getDialect() |
| Modifier and Type | Method and Description |
|---|---|
StructuredDataflowDescriptor.Builder |
StructuredDataflowDescriptor.Builder.dialect(EDbVendor d) |
| Constructor and Description |
|---|
StructuredAdapterContext(EDbVendor dbVendor) |
| Modifier and Type | Method and Description |
|---|---|
static SyntaxDegrader.Sample |
SyntaxDegrader.degrade(String sql,
EDbVendor vendor,
long seed,
int index)
Degrade
sql with the index-th kind (rotating) and a seed derived from seed and
index, verifying that the result no longer parses; up to five re-seeded attempts rotate through
the kinds, and a sample that still parses after that is returned flagged SyntaxDegrader.Sample.stillParses. |
static SyntaxDegrader.Sample |
SyntaxDegrader.degrade(String sql,
EDbVendor vendor,
long seed,
SyntaxDegrader.Kind kind) |
static String |
LayoutDegrader.minify(String sql,
EDbVendor vendor)
Every token separated by one space on one line (a line comment forces a line break after it).
|
static String |
LayoutDegrader.oneTokenPerLine(String sql,
EDbVendor vendor)
Every token on its own line, no indentation.
|
static String |
LayoutDegrader.randomIndent(String sql,
EDbVendor vendor,
long seed,
int maxIndent)
Keep the line structure, replace every line's indent by a random 0..
maxIndent spaces. |
| Constructor and Description |
|---|
CorpusRunner(EDbVendor vendor,
ScoreProfile profile,
boolean keepText) |
CorpusRunner(EDbVendor vendor,
ScoreProfile profile,
boolean keepText,
boolean astEnabled) |
| Modifier and Type | Method and Description |
|---|---|
protected List<SqlInfo> |
ParallelDataFlowAnalyzer.convertSQL(EDbVendor vendor,
String json) |
protected List<SqlInfo> |
DataFlowAnalyzer.convertSQL(EDbVendor vendor,
String json) |
static Dataflow |
DataFlowAnalyzer.getSqlflowJSONModel(dataflow dataflow,
EDbVendor vendor) |
static Dataflow |
DataFlowAnalyzer.getSqlflowJSONModel(EDbVendor vendor,
dataflow dataflow,
boolean normalizeIdentifier) |
DynamicLineageResult |
DataFlowAnalyzer.resolveDynamicSqlLineage(TCustomSqlStatement procAst,
EDbVendor vendor,
TSQLEnv sqlEnv,
String currentDatabase,
String defaultSchema,
Map<String,SqlValue> bindings,
DynamicLineageOptions options)
Resolve dynamic-SQL object names by abstractly evaluating a stored procedure
with a set of parameter bindings.
|
| Constructor and Description |
|---|
DataFlowAnalyzer(File[] sqlFiles,
EDbVendor dbVendor,
boolean simpleOutput) |
DataFlowAnalyzer(File sqlFile,
EDbVendor dbVendor,
boolean simpleOutput) |
DataFlowAnalyzer(SqlInfo[] sqlInfos,
EDbVendor dbVendor,
boolean simpleOutput) |
DataFlowAnalyzer(String[] sqlContents,
EDbVendor dbVendor,
boolean simpleOutput) |
DataFlowAnalyzer(String[] sqlContents,
EDbVendor dbVendor,
boolean simpleOutput,
String defaultServer,
String defaultDatabase,
String defaltSchema) |
DataFlowAnalyzer(String sqlContent,
EDbVendor dbVendor,
boolean simpleOutput) |
DataFlowAnalyzer(String sqlContent,
EDbVendor dbVendor,
boolean simpleOutput,
String defaultServer,
String defaultDatabase,
String defaltSchema) |
ParallelDataFlowAnalyzer(SqlInfo[] sqlInfos,
EDbVendor dbVendor,
boolean simpleOutput) |
ParallelDataFlowAnalyzer(String[] sqlContents,
EDbVendor dbVendor,
boolean simpleOutput) |
ParallelDataFlowAnalyzer(String[] sqlContents,
EDbVendor dbVendor,
boolean simpleOutput,
String defaultServer,
String defaultDatabase,
String defaltSchema) |
| Modifier and Type | Method and Description |
|---|---|
dataflow |
MetadataAnalyzer.analyzeMetadata(EDbVendor vendor,
T metadata) |
| Modifier and Type | Method and Description |
|---|---|
dataflow |
GrabitMetadataAnalyzer.analyzeMetadata(EDbVendor vendor,
String metadata) |
| Modifier and Type | Method and Description |
|---|---|
dataflow |
SQLDepMetadataAnalyzer.analyzeMetadata(EDbVendor vendor,
String metadata) |
| Modifier and Type | Method and Description |
|---|---|
dataflow |
SQLEnvMetadataAnalyzer.analyzeMetadata(EDbVendor metadataVendor,
TSQLEnv sqlenv) |
| Modifier and Type | Method and Description |
|---|---|
dataflow |
SqlflowMetadataAnalyzer.analyzeMetadata(EDbVendor metadataVendor,
String metadata) |
| Modifier and Type | Method and Description |
|---|---|
dataflow |
SqlflowShardedMetadataAnalyzer.analyzeMetadata(EDbVendor metadataVendor,
String metadata) |
| Modifier and Type | Method and Description |
|---|---|
static EDbVendor |
ModelBindingManager.getGlobalVendor() |
EDbVendor |
Option.getPowerQueryInnerVendor()
Explicit SQL dialect for the inner SQL embedded in Power Query
Value.NativeQuery() calls and for navigation-chain synthetic
SELECTs. |
EDbVendor |
Option.getVendor() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
Table.isTsqlFamilyVendor(EDbVendor vendor)
Authoritative
EndpointKind, computed on access from the current (raw)
name and the active dialect. |
static void |
ModelBindingManager.setGlobalVendor(EDbVendor vendor) |
void |
Option.setPowerQueryInnerVendor(EDbVendor powerQueryInnerVendor) |
void |
Option.setVendor(EDbVendor vendor) |
| Modifier and Type | Method and Description |
|---|---|
TSQLEnv[] |
SQLEnvParser.parseSQLEnv(EDbVendor vendor,
SqlInfo[] sqlInfos) |
TSQLEnv[] |
SQLEnvParser.parseSQLEnv(EDbVendor vendor,
String sql) |
| Modifier and Type | Method and Description |
|---|---|
static Set<ShadowLeafEdgeComparator.LeafEdgeKey> |
ShadowLeafEdgeComparator.additionKeysOf(EDbVendor vendor,
Set<ShadowSummaryApplier.ComposedEdge> additions)
Canonical keys of SHADOW additions (same construction as legacy keys).
|
static Set<ShadowLeafEdgeComparator.LeafEdgeKey> |
ShadowLeafEdgeComparator.leafKeysOf(EDbVendor vendor,
dataflow df)
Canonical leaf-edge keys of an analyzed dataflow: its relation graph's
boundary→boundary reachability projection (identical machinery to the
summary extraction closure, applied to the WHOLE unit's model).
|
static Map<TCustomSqlStatement,DynamicSqlLineageResolver.MaterializedSite> |
DynamicSqlLineageResolver.materializeSites(TCustomSqlStatement procAst,
EDbVendor vendor,
Map<String,SqlValue> bindings,
DynamicLineageOptions options)
Same as
DynamicSqlLineageResolver.materializeSitesWithoutBindings(gudusoft.gsqlparser.TCustomSqlStatement, gudusoft.gsqlparser.EDbVendor, gudusoft.gsqlparser.dlineage.dynamicsql.DynamicLineageOptions), but with caller-supplied parameter
bindings (e.g. |
static Map<TCustomSqlStatement,DynamicSqlLineageResolver.MaterializedSite> |
DynamicSqlLineageResolver.materializeSitesWithoutBindings(TCustomSqlStatement procAst,
EDbVendor vendor,
DynamicLineageOptions options)
Default-path hook for
DataFlowAnalyzer: abstractly evaluate a procedure's
dynamic-SQL string building with NO call-site bindings — only literal parameter
defaults are seeded — and return the materialized string per EXEC/sp_executesql
statement node (identity-keyed against the SAME parse tree that was passed in). |
static List<Map<TCustomSqlStatement,DynamicSqlLineageResolver.MaterializedSite>> |
DynamicSqlLineageResolver.materializeSiteVariants(TCustomSqlStatement procAst,
EDbVendor vendor,
Map<String,SqlValue> bindings,
DynamicLineageOptions options)
Materialize all bounded, row-correlated constant-relation variants for a
procedure.
|
static Map<ShadowLeafEdgeComparator.LeafEdgeKey,Integer> |
ShadowLeafEdgeComparator.occurrenceCountsOf(EDbVendor vendor,
Set<ShadowSummaryApplier.ComposedEdge> additions)
Leaf key → number of DISTINCT composition occurrences producing it
(caller × callee × call-site ordinal — the additions set already
carries occurrence identity).
|
static RoutineIdentity |
RoutineIdentity.of(EDbVendor vendor,
RoutineKind kind,
String catalog,
String schema,
String packageName,
String simpleName,
TParameterDeclarationList params,
String overloadDiscriminator)
Builds the identity of one definition from its AST parameter list and
name segments (raw spellings; canonicalized here, exactly once).
|
static ShadowLeafEdgeComparator.LeafEdgeKey |
ShadowLeafEdgeComparator.LeafEdgeKey.parse(EDbVendor vendor,
String line)
Parse one hand-golden line:
type|KIND:parent.column|KIND:parent.column. |
static DynamicSqlEdgeProof.Verdict |
DynamicSqlEdgeProof.prove(DynamicSqlLineageResolver.MaterializedSite site,
TCustomSqlStatement statement,
DynamicSqlEdgeProof.EdgeEvidence evidence,
BindingTraceRegistry traces,
EDbVendor vendor)
Prove one candidate edge against a materialized site.
|
static DynamicLineageResult |
DynamicSqlLineageResolver.resolve(TCustomSqlStatement procAst,
EDbVendor vendor,
TSQLEnv sqlEnv,
String currentDatabase,
String defaultSchema,
Map<String,SqlValue> bindings,
DynamicLineageOptions options) |
| Constructor and Description |
|---|
CatalogRoutineCallBinder(EDbVendor vendor,
RoutineCatalog catalog) |
ProceduralLineageAnalyzer(EDbVendor vendor) |
ProceduralLineageAnalyzer(EDbVendor vendor,
ProceduralLineageOptions options) |
RoutineCatalog(EDbVendor vendor,
List<String> unitTexts,
Map<String,TStatementList> parseCache) |
RoutineSummaryExtractor(EDbVendor vendor) |
ShadowSummaryApplier(EDbVendor vendor) |
ShadowSummaryApplier(EDbVendor vendor,
ProceduralLineageOptions options) |
| Modifier and Type | Method and Description |
|---|---|
String |
DataFlowGraphGenerator.genDlineageGraph(EDbVendor vendor,
boolean isIndirect,
dataflow dataflow) |
String |
DataFlowGraphGenerator.genERGraph(EDbVendor vendor,
dataflow dataflow) |
| Modifier and Type | Field and Description |
|---|---|
EDbVendor |
PowerQueryLineageResult.NativeQueryRef.resolvedVendor |
EDbVendor |
PowerQueryLineageResult.NavigationRef.resolvedVendor |
| Modifier and Type | Method and Description |
|---|---|
TPowerQueryAnalyzer |
TPowerQueryAnalyzer.withExplicitInnerVendor(EDbVendor vendor)
Force the SQL dialect used to parse inner SQL — both the decoded
Value.NativeQuery() text and navigation-chain synthetic
SELECTs. |
TPowerQueryAnalyzer |
TPowerQueryAnalyzer.withInnerVendorOverride(EDbVendor vendor)
Fallback vendor used only when no connector call is visible in the
document and no explicit vendor was supplied.
|
| Modifier and Type | Method and Description |
|---|---|
protected static void |
MetadataUtil.appendPackages(Sqlflow sqlflow,
EDbVendor vendor,
dataflow dataflow) |
protected static void |
MetadataUtil.appendProcesses(Sqlflow sqlflow,
EDbVendor vendor,
dataflow dataflow) |
protected static void |
MetadataUtil.appendTables(Sqlflow sqlflow,
EDbVendor vendor,
dataflow dataflow) |
static Sqlflow |
MetadataUtil.convertDataflowToMetadata(EDbVendor vendor,
dataflow dataflow) |
static Sqlflow |
MetadataUtil.convertMetadataJsonToSqlflow(EDbVendor vendor,
String json) |
static Sqlflow |
MetadataUtil.convertShardedMetadataJsonToSqlflow(EDbVendor vendor,
String json,
String baseDir) |
| Modifier and Type | Method and Description |
|---|---|
static dataflow |
DataflowUtility.convertTableLevelToFunctionCallDataflow(dataflow dataflow,
boolean showBuiltIn,
EDbVendor dbVendor) |
static dataflow |
DataflowUtility.convertToSchemaLevelDataflow(dataflow dataflow,
EDbVendor dbVendor) |
static dataflow |
DataflowUtility.convertToSchemaLevelDataflow(dataflow dataflow,
EDbVendor dbVendor,
boolean isSimple) |
static String |
LeftMostTableUtility.generateLeftMostTableCsv(Option option,
SqlInfo[] sqlInfos,
TSQLEnv sqlenv,
EDbVendor vendor) |
static String |
LeftMostTableUtility.generateLeftMostTableCsv(Option option,
SqlInfo[] sqlInfos,
TSQLEnv sqlenv,
EDbVendor vendor,
String delimiter) |
static String |
DlineageUtil.getIdentifierNormalColumnName(String name,
EDbVendor dbVendor)
Legacy display/normal-name form — for equality use
DlineageUtil.sameName(gudusoft.gsqlparser.sqlenv.ESQLDataObjectType, java.lang.String, java.lang.String) /
DlineageUtil.sameColumnSegment(java.lang.String, java.lang.String) / DlineageUtil.sameColumnName(gudusoft.gsqlparser.nodes.TObjectName, gudusoft.gsqlparser.nodes.TObjectName), not string compares on
this result. |
DbObjectPosition |
SqlInfoHelper.getSelectedDbObjectStatementInfo(EDbVendor vendor,
Coordinate start,
Coordinate end) |
static boolean |
FunctionUtility.isDirectRelation(EDbVendor vendor,
String function,
int argCount,
int argIndex) |
static boolean |
FunctionUtility.isIndirectRelation(EDbVendor vendor,
String function,
int argCount,
int argIndex) |
static boolean |
DlineageUtil.isTempTable(Table tableModel,
EDbVendor vendor) |
static dataflow |
DataflowUtility.iterativeMergeDataflowsFromFiles(List<File> tempFiles,
EDbVendor vendor)
从一组临时 XML 文件迭代加载并合并 dataflow,节约内存。
|
static boolean |
TableFlowUtility.matchTableName(String tableNamePattern,
table targetTable,
boolean regex,
EDbVendor vendor) |
static dataflow |
DataflowUtility.mergeDataflows(Collection<dataflow> dataflows,
EDbVendor vendor)
合并一组 startId 都为 0(即 ID 空间相互冲突)的 dataflow。
|
static dataflow |
DataflowUtility.mergeDataflowsWithDifferentStartId(Collection<dataflow> dataflows,
EDbVendor vendor) |
static dataflow |
DataflowUtility.mergeFunctionCallDataflow(dataflow dataflow,
EDbVendor dbVendor) |
static String |
DlineageUtil.normalizeColumnName(String name,
EDbVendor dbVendor)
Legacy uppercase-collapsed normal form — for equality use
DlineageUtil.sameName(gudusoft.gsqlparser.sqlenv.ESQLDataObjectType, java.lang.String, java.lang.String) /
DlineageUtil.sameColumnSegment(java.lang.String, java.lang.String), not string compares on this result. |
static dataflow |
DataflowUtility.readDataflowFromCsvMetadata(String csvMetadata,
EDbVendor vendor) |
dataflow |
DataflowRemoveHelper.remove(dataflow instance,
EDbVendor dbVendor,
DataflowRemoveOption option) |
dataflow |
RemoveDataflowFunction.removeFunction(dataflow instance,
EDbVendor dbVendor) |
static boolean |
DlineageUtil.supportFunctionOverride(EDbVendor vendor) |
| Modifier and Type | Method and Description |
|---|---|
static Dataflow |
DataflowUtility.mergeDataflowsAndCsv(List<Pair<EDbVendor,dataflow>> pairs,
String csvMetadata) |
| Modifier and Type | Method and Description |
|---|---|
List<DynamicSqlExtraction> |
DefaultDynamicSqlAnalyzer.analyze(EDbVendor vendor,
TParseTreeNode sourceNode,
String sqlText,
String owningRoutineId,
AnalyzerV2Config config) |
List<DynamicSqlExtraction> |
DynamicSqlAnalyzer.analyze(EDbVendor vendor,
TParseTreeNode sourceNode,
String sqlText,
String owningRoutineId,
AnalyzerV2Config config)
Analyzes a dynamic SQL occurrence and extracts references.
|
| Modifier and Type | Method and Description |
|---|---|
static AnalysisResult |
SqlSemanticAnalyzer.analyze(String sql,
EDbVendor vendor)
Convenience overload — equivalent to
analyze(sql, vendor, (TSQLEnv) null). |
static AnalysisResult |
SqlSemanticAnalyzer.analyze(String sql,
EDbVendor vendor,
Catalog catalog)
Slice 76 — analyze a single
SELECT statement using
catalog metadata supplied as a Catalog DTO instead of a
TSQLEnv. |
static AnalysisResult |
SqlSemanticAnalyzer.analyze(String sql,
EDbVendor vendor,
TSQLEnv catalog)
Analyze a single
SELECT statement using catalog metadata
supplied as a TSQLEnv. |
static List<AnalysisResult> |
SqlSemanticAnalyzer.analyzeAll(String sql,
EDbVendor vendor)
Slice 178 (R2) — analyze every top-level statement in
sql,
returning one AnalysisResult per statement in source order. |
static List<AnalysisResult> |
SqlSemanticAnalyzer.analyzeAll(String sql,
EDbVendor vendor,
Catalog catalog)
Slice 178 (R2) — multi-statement entry point with an optional
Catalog. |
| Modifier and Type | Method and Description |
|---|---|
static ProjectorResult |
DlineageXmlProjector.project(String xml,
EDbVendor vendor)
Slice 43 — vendor-scoped projection entry point.
|
static ProjectorResult |
DlineageXmlProjector.projectGraph(String xml,
EDbVendor vendor)
US-011 — whole-file ("graph mode") projection for the full mssql
corpus shapes: procedures, variables (including cursor variables),
temp tables, multi-statement batches, INSERT / UPDATE / DELETE /
MERGE / CTAS / CREATE VIEW write targets, and
call
relationships. |
| Modifier and Type | Method and Description |
|---|---|
static LineageResult |
LineageAnalyzer.analyze(File unitFile,
EDbVendor vendor,
Catalog catalog,
LineageConfig config)
Analyze a unit supplied as a file (read as UTF-8).
|
static LineageResult |
LineageAnalyzer.analyze(String unitText,
EDbVendor vendor,
Catalog catalog,
LineageConfig config)
Analyze a unit supplied as text.
|
| Modifier and Type | Method and Description |
|---|---|
static List<ContractEdge> |
StatementLineageExtractor.extract(TSelectSqlStatement stmt,
String statementText,
int statementIndex,
String queryFingerprint,
EDbVendor vendor,
Catalog catalog,
LineageConfig config,
String artifactLocator,
String unitText)
Extract contract edges for one parsed SELECT statement.
|
| Modifier and Type | Field and Description |
|---|---|
EDbVendor |
TParseTreeNode.dbvendor
SQL dialect of this statement.
|
EDbVendor |
TDummy.dbvendor |
| Modifier and Type | Method and Description |
|---|---|
EDbVendor |
TNodeFactory.getDbVendor() |
| Modifier and Type | Method and Description |
|---|---|
static TExpression |
TExpression.createExpression(EDbVendor dbVendor,
EExpressionType pExpressionType,
TSourceToken pOperatorToken,
TExpression pLeft,
TExpression pRight) |
static TExpression |
TExpression.createExpression(EDbVendor dbVendor,
EExpressionType pExpressionType,
TSourceToken pOperatorToken,
TObjectName pLeft,
TConstant pRight) |
static TExpression |
TExpression.createExpression(EDbVendor dbVendor,
EExpressionType pExpressionType,
TSourceToken pOperatorToken,
TObjectName pLeft,
TObjectName pRight) |
static TExpression |
TExpression.createExpression(EDbVendor dbVendor,
TConstant constantOperand) |
static TExpression |
TExpression.createExpression(EDbVendor dbVendor,
TObjectName objectOperand) |
static TObjectName |
TObjectName.createObjectName(EDbVendor dbVendor,
EDbObjectType dbObjectType) |
static TObjectName |
TObjectName.createObjectName(EDbVendor dbVendor,
EDbObjectType dbObjectType,
String str) |
static TObjectName |
TObjectName.createObjectName(EDbVendor dbVendor,
EDbObjectType dbObjectType,
TSourceToken token1) |
static TObjectName |
TObjectName.createObjectName(EDbVendor dbVendor,
EDbObjectType dbObjectType,
TSourceToken token1,
TSourceToken token2) |
static TObjectName |
TObjectName.createObjectName(EDbVendor dbVendor,
EDbObjectType dbObjectType,
TSourceToken token1,
TSourceToken token2,
TSourceToken token3) |
static TObjectName |
TObjectName.createObjectName(EDbVendor dbVendor,
EDbObjectType dbObjectType,
TSourceToken token1,
TSourceToken token2,
TSourceToken token3,
TSourceToken token4) |
TResultColumn |
TResultColumnList.findLateralAliasDefinition(EDbVendor vendor,
TObjectName reference)
Find the SELECT-list column alias that an unqualified reference elsewhere in the
same SELECT block binds to — a "lateral column alias" reference such as
Snowflake's
SELECT val*2 AS derived_col FROM t WHERE derived_col > 1. |
boolean |
TFunctionCall.isBuiltIn(EDbVendor pDBVendor) |
static boolean |
TFunctionCall.isBuiltIn(String pName,
EDbVendor pDBVendor) |
int |
TFunctionCall.isColumnInThisTableFunction(TSQLEnv sqlEnv,
EDbVendor dbVendor,
TObjectName pColumn) |
boolean |
TResultColumn.isMatchedWithResultColumn(EDbVendor dbVendor,
TObjectName pColumn) |
boolean |
TObjectName.isValidColumnName(EDbVendor pDBVendor)
Check whether a column name is syntax valid in a specific database vendor.
|
static EDataType |
TTypeName.searchTypeByName(String typenameStr,
EDbVendor dbVendor) |
void |
TObjectName.setDbObjectType(EDbVendor dbVendor,
EDbObjectType dbObjectType) |
void |
TNodeFactory.setDbVendor(EDbVendor dbVendor) |
| Constructor and Description |
|---|
TNodeFactory(EDbVendor dbVendor) |
| Modifier and Type | Method and Description |
|---|---|
EDbVendor |
TPowerQueryNativeQuery.getInferredInnerVendor() |
EDbVendor |
TPowerQueryConnectorCall.getResolvedVendor() |
| Modifier and Type | Method and Description |
|---|---|
void |
TPowerQueryNativeQuery.setInferredInnerVendor(EDbVendor inferredInnerVendor) |
void |
TPowerQueryConnectorCall.setResolvedVendor(EDbVendor resolvedVendor) |
| Modifier and Type | Field and Description |
|---|---|
protected EDbVendor |
AbstractSqlParser.vendor |
| Modifier and Type | Method and Description |
|---|---|
EDbVendor |
FlinkSqlParser.getVendor() |
EDbVendor |
ParserContext.getVendor() |
EDbVendor |
TrinoSqlParser.getVendor() |
EDbVendor |
GaussDbSqlParser.getVendor() |
EDbVendor |
AbstractSqlParser.getVendor() |
EDbVendor |
SqlParser.getVendor()
Get the database vendor this parser handles.
|
EDbVendor |
AthenaSqlParser.getVendor() |
EDbVendor |
MySqlParser.getVendor() |
EDbVendor |
SparkSqlParser.getVendor() |
EDbVendor |
EdbSqlParser.getVendor() |
EDbVendor |
OceanBaseSqlParser.getVendor() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
AbstractSqlParser.isDollarFunctionDelimiter(int tokencode,
EDbVendor dbVendor)
Check if a token is a dollar function delimiter ($$, $tag$, etc.) for PostgreSQL-family databases.
|
| Constructor and Description |
|---|
AbstractSqlParser(EDbVendor vendor)
Construct parser for given database vendor.
|
Builder(EDbVendor vendor)
Create a builder with required vendor parameter.
|
| Modifier and Type | Method and Description |
|---|---|
static EDbVendor |
ConnectorCatalog.vendorFor(String qualifiedFunctionName)
Look up the vendor for a qualified function name such as
"Snowflake.Databases". |
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
ConnectorCatalog.expectedHierarchy(EDbVendor vendor)
Canonical navigation-segment hierarchy for a given vendor.
|
| Modifier and Type | Method and Description |
|---|---|
static OutputConfig |
OutputConfigFactory.getOutputConfig(GFmtOpt option,
EDbVendor dbVendor) |
| Constructor and Description |
|---|
HtmlOutputConfig(GFmtOpt option,
EDbVendor dbVendor) |
HtmlRenderUtil(HtmlOutputConfig config,
GFmtOpt option,
EDbVendor dbVendor) |
| Modifier and Type | Method and Description |
|---|---|
ScoreReport |
PrettyScore.score(String sql,
EDbVendor vendor)
Score
sql with the default profile and no fidelity gate. |
ScoreReport |
PrettyScore.score(String sql,
EDbVendor vendor,
ScoreProfile profile,
String original,
Map<String,Object> options) |
| Modifier and Type | Field and Description |
|---|---|
EDbVendor |
SQLion.dbname |
| Modifier and Type | Method and Description |
|---|---|
void |
SQLion.initFormatOptions(EDbVendor vendor,
GFmtOpt option) |
| Constructor and Description |
|---|
SQLion(EDbVendor vendor,
GFmtOpt option) |
| Modifier and Type | Method and Description |
|---|---|
Pp2FormatResult |
Pp2Formatter.format(String sql,
EDbVendor vendor,
Pp2FormatOptions opts)
Format the given SQL using the supplied vendor and options.
|
| Modifier and Type | Method and Description |
|---|---|
EDbVendor |
GenericDialect.getVendor() |
EDbVendor |
DialectStrategy.getVendor()
The vendor this strategy serves.
|
| Modifier and Type | Method and Description |
|---|---|
static DialectStrategy |
DialectRegistry.forVendor(EDbVendor vendor)
The strategy for
vendor; never null. |
| Constructor and Description |
|---|
GenericDialect(EDbVendor vendor) |
| Modifier and Type | Method and Description |
|---|---|
Pp2FormatResult |
Pp2Engine.format(String sql,
EDbVendor vendor,
Pp2FormatOptions opts)
Format the given SQL string using the supplied database vendor and
options.
|
| Modifier and Type | Method and Description |
|---|---|
List<MultiWordKeywordMerger.Match> |
MultiWordKeywordMerger.findMatches(Pp2TokenStream stream,
EDbVendor vendor)
Find all multi-word keyword spans in
stream for vendor. |
static List<MultiWordKeywordTable.Phrase> |
MultiWordKeywordTable.forVendor(EDbVendor vendor)
Return the immutable, longest-phrase-first list of multi-word keyword
phrases applicable to
vendor (the universal ALL phrases
plus any vendor-specific ones). |
| Modifier and Type | Method and Description |
|---|---|
EDbVendor |
ParseRecoveryEngine.getVendor()
EDbVendor this engine targets.
|
EDbVendor |
ParserPool.getVendor() |
| Modifier and Type | Method and Description |
|---|---|
List<StatementRange> |
StatementBoundaryDetector.detect(Pp2TokenStream stream,
EDbVendor vendor)
Detect statement boundaries.
|
| Constructor and Description |
|---|
ParseRecoveryEngine(EDbVendor vendor,
String originalSql,
Pp2TokenStream stream,
Pp2FormatOptions opts) |
ParserPool(EDbVendor vendor) |
| Modifier and Type | Method and Description |
|---|---|
EDbVendor |
GuardedAstDelegate.getVendor() |
| Constructor and Description |
|---|
GuardedAstDelegate(EDbVendor vendor)
Construct a delegate for the supplied vendor.
|
LexicalIslandRenderer(EDbVendor vendor) |
RegionAssembler(EDbVendor vendor)
Assembler that recognises
vendor's line-comment syntax when
deciding whether a region begins with a (trailing) comment. |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
TokenEquivalence.commentsPreserved(String left,
String right,
EDbVendor vendor)
The comment half of
TokenEquivalence.equalsModuloFormatting(String, String,
Pp2FormatOptions, EDbVendor, boolean): the comments of left
appear in right in the same relative order with byte-exact
text; their position relative to the solid tokens may differ. |
static boolean |
TokenEquivalence.equalsModuloFormatting(String left,
String right,
Pp2FormatOptions opts,
EDbVendor vendor,
boolean caseInsensitive)
Full-control comparison.
|
static boolean |
TokenEquivalence.solidTokensEquivalent(String left,
String right,
EDbVendor vendor,
boolean caseInsensitive)
The solid-token half of
TokenEquivalence.equalsModuloFormatting(String, String,
Pp2FormatOptions, EDbVendor, boolean): every non-comment token of
left appears in right once, in order, with the same
type and (case-insensitively for keywords and unquoted identifiers
when caseInsensitive) the same text. |
| Modifier and Type | Method and Description |
|---|---|
EDbVendor |
TSQLResolverConfig.getVendor()
Get the database vendor, if set.
|
| Modifier and Type | Method and Description |
|---|---|
static TSQLResolverConfig |
TSQLResolverConfig.createForVendor(EDbVendor vendor)
Create configuration for a specific database vendor.
|
static TSQLResolverConfig |
TSQLResolverConfig.createForVendorWithDatatype(EDbVendor vendor)
Create configuration for a specific database vendor with datatype display enabled.
|
void |
TSQLResolverConfig.setVendor(EDbVendor vendor)
Set the database vendor and update name matcher accordingly.
|
| Modifier and Type | Method and Description |
|---|---|
static BindingResult |
SqlBinding.resolve(String sql,
EDbVendor vendor,
TSQLEnv env,
TSQLResolverConfig config)
Parse and resolve
sql against the supplied vendor / catalog,
returning the binding result. |
| Constructor and Description |
|---|
DisplayNameNormalizer(EDbVendor vendor)
Create a normalizer for the specified database vendor.
|
| Modifier and Type | Method and Description |
|---|---|
EDbVendor |
VendorNameMatcher.getVendor()
Get the database vendor.
|
| Constructor and Description |
|---|
VendorNameMatcher(EDbVendor vendor)
Create a vendor name matcher with default object type (column).
|
VendorNameMatcher(EDbVendor vendor,
ESQLDataObjectType defaultObjectType)
Create a vendor name matcher with specified default object type.
|
| Constructor and Description |
|---|
BatchMetadataCollector(TStatementList statements,
EDbVendor vendor)
Create a batch metadata collector.
|
| Constructor and Description |
|---|
QualifiedNameResolver(String defaultCatalog,
String defaultSchema,
EDbVendor vendor)
Create a QualifiedNameResolver with explicit defaults.
|
QualifiedNameResolver(TSQLEnv sqlEnv,
EDbVendor vendor)
Create a QualifiedNameResolver with the given SQL environment.
|
| Modifier and Type | Method and Description |
|---|---|
EDbVendor |
TableNamespace.getVendor()
Get the database vendor.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
PivotNamespace.inListValueColumnName(EDbVendor vendor,
String rawValue)
The name a PIVOT gives to the column generated by one unaliased IN-list value.
|
void |
TableNamespace.setVendor(EDbVendor vendor)
Set the database vendor.
|
| Constructor and Description |
|---|
TableNamespace(TTable table,
INameMatcher nameMatcher,
TSQLEnv sqlEnv,
EDbVendor vendor)
Create a TableNamespace with full qualified name resolution support.
|
| Modifier and Type | Method and Description |
|---|---|
EDbVendor |
GlobalScope.getVendor()
Get the database vendor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
GlobalScope.setVendor(EDbVendor vendor)
Set the database vendor.
|
| Constructor and Description |
|---|
GlobalScope(gudusoft.gsqlparser.compiler.TContext globalContext,
INameMatcher nameMatcher,
TSQLEnv sqlEnv,
EDbVendor vendor)
Create a GlobalScope with SQL environment for qualified name resolution.
|
| Constructor and Description |
|---|
GspPersistentIdentityResolver(EDbVendor vendor,
IdentifierProfile.VendorFlags flags,
GspPersistentIdentityResolver.BindingProvider bindingProvider,
boolean approximateFallback) |
| Modifier and Type | Field and Description |
|---|---|
protected EDbVendor |
AbstractSqlCmds.vendor |
| Modifier and Type | Method and Description |
|---|---|
EDbVendor |
TSqlCmdsAdapter.getVendor() |
EDbVendor |
AbstractSqlCmds.getVendor() |
EDbVendor |
ISqlCmds.getVendor()
Gets the vendor this command resolver handles.
|
| Modifier and Type | Method and Description |
|---|---|
static ISqlCmds |
SqlCmdsFactory.get(EDbVendor vendor)
Gets or creates a vendor-specific SQL command resolver.
|
TSqlCmds.TSqlCmdList |
TSqlCmds.getSqlCmdList(EDbVendor dbVendor) |
TCustomSqlStatement |
TSqlCmds.issql(TSourceToken pcst,
EDbVendor pdbvendor,
EFindSqlStateType pstate,
TCustomSqlStatement psqlstatement) |
void |
TSqlCmdsMssql.setVendor(EDbVendor dbVendor)
this method is used to set the vendor.
|
| Constructor and Description |
|---|
AbstractSqlCmds(EDbVendor vendor)
Constructor for vendor-specific implementation.
|
TSqlCmdsAdapter(EDbVendor vendor) |
TSqlCmdsHive(EDbVendor vendor)
For dialect subclasses (e.g.
|
| Modifier and Type | Field and Description |
|---|---|
static Map<EDbVendor,Boolean> |
TSQLEnv.catalogCollationCaseSensitive |
static Map<EDbVendor,Boolean> |
TSQLEnv.columnCollationCaseSensitive |
static Map<EDbVendor,Boolean> |
TSQLEnv.defaultCollationCaseSensitive |
static Map<EDbVendor,Boolean> |
TSQLEnv.functionCollationCaseSensitive |
static Map<EDbVendor,Boolean> |
TSQLEnv.isAliasReferenceForbidden |
static Map<EDbVendor,Boolean> |
TSQLEnv.tableCollationCaseSensitive |
| Modifier and Type | Method and Description |
|---|---|
EDbVendor |
TSQLEnv.getDBVendor()
the database vendor where this SQL environment is generated from.
|
EDbVendor |
CanonKey.getVendor() |
EDbVendor |
CatalogStore.getVendor()
Returns the database vendor associated with this store.
|
EDbVendor |
CompositeKeyOptimizer.getVendor()
获取厂商
|
EDbVendor |
IdentifierProfile.getVendor()
获取数据库厂商
|
EDbVendor |
NameService.getVendor()
Returns the database vendor associated with this service.
|
EDbVendor |
NamePolicyFactory.getVendor()
Returns the database vendor associated with this factory.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
IdentifierService.areEqualStatic(EDbVendor dbVendor,
ESQLDataObjectType objectType,
String ident1,
String ident2)
High-performance static identifier comparison method with caching
|
static IdentifierProfile.Builder |
IdentifierProfile.builder(EDbVendor vendor)
Create a builder seeded from default rules for the given vendor
with default VendorFlags.
|
static IdentifierProfile.Builder |
IdentifierProfile.builder(EDbVendor vendor,
IdentifierProfile.VendorFlags flags)
Create a builder seeded from default rules for the given vendor
and the specified VendorFlags.
|
static String |
NameNormalizer.canonicalize(EDbVendor vendor,
ESQLDataObjectType type,
String identifier) |
static CanonKey |
IdentifierService.canonKeyStatic(EDbVendor dbVendor,
ESQLDataObjectType objectType,
String identifier)
Static
IdentifierService.canonKey(java.lang.String, gudusoft.gsqlparser.sqlenv.ESQLDataObjectType) accessor over the cached default-flags service per vendor
(same cache IdentifierService.areEqualStatic(gudusoft.gsqlparser.EDbVendor, gudusoft.gsqlparser.sqlenv.ESQLDataObjectType, java.lang.String, java.lang.String) uses, so key equality mirrors that relation). |
static boolean |
TSQLEnv.compareColumn(EDbVendor dbVendor,
TObjectName sourceColumn,
TObjectName targetColumn) |
static boolean |
TSQLEnv.compareIdentifier(EDbVendor dbVendor,
ESQLDataObjectType objectType,
String ident1,
String ident2)
Single-segment identifier equality — the same canonical relation as
SQLUtil.sameName(EDbVendor, ESQLDataObjectType,
String, String), which delegates here. |
static boolean |
TSQLEnv.compareIdentifier(EDbVendor dbVendor,
ESQLDataObjectType objectType,
TObjectName source,
TObjectName target)
Deprecated.
Compares the
toString() of the two object names, which can be a
multi-segment qualified string (sch.t.c) fed into a single-segment compare.
Use SQLUtil.compareIdentifier(EDbVendor,
ESQLDataObjectType, String, String) for possibly-qualified names, or
SQLUtil.sameName(EDbVendor, ESQLDataObjectType,
String, String) on the raw single-segment parts. See
gsp_java_core/doc/user_guide/identifier_normalization_guide.md. |
static boolean |
TSQLEnv.compareQualifiedColumn(EDbVendor dbVendor,
String sourceColumn,
String targetColumn,
String sourceTable,
String targetTable,
String sourceSchema,
String targetSchema,
String sourceDatabase,
String targetDatabase) |
static boolean |
TSQLEnv.compareQualifiedTable(EDbVendor dbVendor,
String sourceTable,
String targetTable,
String sourceSchema,
String targetSchema,
String sourceDatabase,
String targetDatabase) |
static boolean |
TSQLEnv.compareTable(EDbVendor dbVendor,
TObjectName sourceTable,
TObjectName targetTable) |
static int |
TSQLObject.compareTo(EDbVendor dbVendor,
ESQLDataObjectType sqlDataObjectType,
String pTargetObjectName,
String objectName)
Deprecated.
since version 2.2.3.2(2021-05-10), replaced by @TSQLEnv.compareIdentifier()
|
static int |
TSQLObject.compareTo(EDbVendor dbVendor,
ESQLDataObjectType sqlDataObjectType,
TSQLObject targetDataObject,
String objectName) |
static boolean |
CollationCompatView.computeCatalogCaseSensitivity(EDbVendor vendor)
计算 catalog 名的大小写敏感性
|
static boolean |
CollationCompatView.computeColumnCaseSensitivity(EDbVendor vendor)
计算列名的大小写敏感性
|
static boolean |
CollationCompatView.computeFunctionCaseSensitivity(EDbVendor vendor)
计算函数名的大小写敏感性
|
static boolean |
CollationCompatView.computeTableCaseSensitivity(EDbVendor vendor)
计算表名的大小写敏感性(供兼容视图调用)
|
static String |
TSQLEnv.delimitedChar(EDbVendor dbVendor)
used to delimit a database identifier, such as [ used in SQL Server, ` used in MySQL
|
static boolean |
TSQLEnv.endsWithDelimitedIdentifier(EDbVendor dbVendor,
String identifier) |
List<String> |
IdentifierService.expandVendorSpecific(List<String> segments,
EDbVendor vendor)
厂商级预处理(展开特殊语法)
|
List<String> |
IdentifierService.expandVendorSpecific(List<String> segments,
EDbVendor vendor,
String defaultSchema)
厂商级预处理(展开特殊语法)
|
static IdentifierProfile |
IdentifierProfile.forVendor(EDbVendor vendor,
IdentifierProfile.VendorFlags flags)
为指定厂商创建标识符配置档案
|
static String |
TSQLEnv.getStmtSeparatorChar(EDbVendor dbVendor) |
static boolean |
TSQLEnv.isDelimitedIdentifier(EDbVendor dbVendor,
String identifier) |
static boolean |
TSQLEnv.matchSubObjectNameToWhole(EDbVendor dbVendor,
ESQLDataObjectType sqlDataObjectType,
String sub,
String whole)
比较 一个数据库对象名是否等于或者属于另一个对象
等于 就是完全相等(根据不同数据库的比较规则)
属于 表示如下情况:
1.
|
static String |
TSQLEnv.normalizeIdentifier(EDbVendor dbVendor,
ESQLDataObjectType sqlDataObjectType,
String identifier)
Deprecated.
For equality tests use
SQLUtil.sameName(EDbVendor, ESQLDataObjectType,
String, String) or SQLUtil.compareIdentifier(
EDbVendor, ESQLDataObjectType, String, String) — never normalize-then-compare.
For the stored/display form use
IdentifierService.normalizeStatic(EDbVendor, ESQLDataObjectType, String);
for map keys use SQLUtil.canonKey(EDbVendor,
ESQLDataObjectType, String) or IdentifierService.keyForMap(String,
ESQLDataObjectType). |
static String |
IdentifierService.normalizeStatic(EDbVendor dbVendor,
ESQLDataObjectType objectType,
String identifier)
High-performance static normalize method with caching
|
static boolean |
TSQLEnv.supportCatalog(EDbVendor dbVendor)
Whether this database support catalog or not?
|
static boolean |
TSQLEnv.supportSchema(EDbVendor dbVendor)
Whether this database support schema or not?
|
static boolean |
CollationCompatView.verifyConsistency(EDbVendor vendor)
验证兼容视图的一致性(测试时调用)
|
| Constructor and Description |
|---|
CatalogStore(EDbVendor vendor)
Deprecated.
Use
CatalogStore(EDbVendor, IdentifierService) instead |
CatalogStore(EDbVendor vendor,
IdentifierService identifierService)
Creates a new CatalogStore for the specified database vendor with IdentifierService.
|
CompositeKeyOptimizer(EDbVendor vendor)
构造复合键优化器
|
NamePolicyFactory(EDbVendor vendor)
Creates a new NamePolicyFactory for the specified database vendor.
|
NameService(EDbVendor vendor)
Creates a new NameService for the specified database vendor.
|
QualifiedName(EDbVendor vendor,
String server,
String catalog,
String schema,
String object,
String column,
ESQLDataObjectType objectType) |
TDDLSQLEnv(String defaultServer,
String defaultDatabase,
String defaultSchema,
EDbVendor dbVendor,
String sql) |
TDDLSQLEnv(String defaultServer,
String defaultDatabase,
String defaultSchema,
TSQLEnv metadataSQLEnv,
EDbVendor dbVendor,
String sql) |
TSQLEnv(EDbVendor dbVendor)
create a SQL environment.
|
| Constructor and Description |
|---|
CatalogStoreProvider(EDbVendor vendor)
Creates a CatalogStoreProvider with default flags
|
CatalogStoreProvider(EDbVendor vendor,
IdentifierProfile.VendorFlags flags)
Creates a CatalogStoreProvider with custom vendor flags
|
| Modifier and Type | Method and Description |
|---|---|
static TSQLEnv |
LazyCatalogSqlEnv.from(CatalogProvider provider,
CatalogProviderConfig config,
EDbVendor vendor)
Open the provider, build a runtime in LAZY mode for the given vendor, and wrap.
|
| Constructor and Description |
|---|
CatalogRuntimeToSQLEnvBridge(EDbVendor vendor,
CatalogRuntime runtime,
CatalogLoadOptions options)
Construct a bridge for the given runtime and explicit vendor.
|
| Modifier and Type | Method and Description |
|---|---|
TSQLEnv[] |
TSQLEnvParser.parseSQLEnv(EDbVendor vendor,
String metadata) |
TSQLEnv[] |
TJSONSQLEnvParser.parseSQLEnv(EDbVendor vendor,
String sql) |
TSQLEnv[] |
TJSONSQLEnvParser.parseSQLEnv(EDbVendor vendor,
String sql,
String explicitBaseDir) |
| Constructor and Description |
|---|
GrabitSQLEnv(String defaultServer,
String defaultDatabase,
String defaultSchema,
EDbVendor dbVendor,
Map jsonContent) |
MultipleGrabitSQLEnv(String defaultServer,
String defaultDatabase,
String defaultSchema,
EDbVendor dbVendor,
List jsonArray) |
| Constructor and Description |
|---|
SqlflowShardedSQLEnv(String defaultServer,
String defaultDatabase,
String defaultSchema,
EDbVendor dbVendor,
Map server,
String baseDir)
Constructor with explicit base directory for catalog files.
|
| Constructor and Description |
|---|
MultipleSQLDepSQLEnv(String defaultServer,
String defaultDatabase,
String defaultSchema,
EDbVendor dbVendor,
List jsonArray) |
SQLDepSQLEnv(String defaultServer,
String defaultDatabase,
String defaultSchema,
EDbVendor dbVendor,
Map jsonContent) |
| Constructor and Description |
|---|
SqlflowSQLEnv(String defaultServer,
String defaultDatabase,
String defaultSchema,
EDbVendor dbVendor,
Map server) |
| Constructor and Description |
|---|
TCreateModelSqlStatement(EDbVendor dbvendor) |
TExportDataStmt(EDbVendor dbvendor) |
| Constructor and Description |
|---|
TInferKeyspaceStmt(EDbVendor dbvendor) |
TTBuildIndexesStmt(EDbVendor dbvendor) |
| Constructor and Description |
|---|
TDamengRefreshMaterializedViewStmt(EDbVendor dbvendor) |
| Constructor and Description |
|---|
TConvertToDeltaStmt(EDbVendor dbvendor) |
TCreateCatalogStmt(EDbVendor dbvendor) |
TCreateExternalLocationStmt(EDbVendor dbvendor) |
TOptimizeStmt(EDbVendor dbvendor) |
TReorgTableStmt(EDbVendor dbvendor) |
TRestoreTableStmt(EDbVendor dbvendor) |
| Constructor and Description |
|---|
TDaxEvaluateStmt(EDbVendor dbvendor) |
TDaxExprStmt(EDbVendor dbvendor) |
TDaxStmt(EDbVendor dbvendor) |
| Constructor and Description |
|---|
TFlinkAlterCatalogStmt(EDbVendor dbvendor) |
TFlinkCreateCatalogStmt(EDbVendor dbvendor) |
TFlinkDropCatalogStmt(EDbVendor dbvendor) |
TFlinkExecuteStatementSetStmt(EDbVendor dbvendor) |
TFlinkExplainStmt(EDbVendor dbvendor) |
| Constructor and Description |
|---|
TSlashCommand(EDbVendor dbvendor) |
| Constructor and Description |
|---|
THiveCreateFunction(EDbVendor dbvendor) |
THiveCreateRole(EDbVendor dbvendor) |
THiveDescribe(EDbVendor dbvendor) |
THiveDropDatabase(EDbVendor dbvendor) |
THiveDropFunction(EDbVendor dbvendor) |
THiveDropRole(EDbVendor dbvendor) |
THiveExplain(EDbVendor dbvendor) |
THiveExportTable(EDbVendor dbvendor) |
THiveFromQuery(EDbVendor dbvendor) |
THiveGrant(EDbVendor dbvendor) |
THiveGrantRole(EDbVendor dbvendor) |
THiveImportTable(EDbVendor dbvendor) |
THiveLoad(EDbVendor dbvendor) |
THiveRevoke(EDbVendor dbvendor) |
THiveRevokeRole(EDbVendor dbvendor) |
THiveSet(EDbVendor dbvendor) |
THiveShow(EDbVendor dbvendor) |
THiveShowGrant(EDbVendor dbvendor) |
THiveShowRoleGrant(EDbVendor dbvendor) |
THiveSwitchDatabase(EDbVendor dbvendor)
Deprecated.
|
THiveUnlockTable(EDbVendor dbvendor) |
| Constructor and Description |
|---|
TComputeStats(EDbVendor dbvendor) |
| Constructor and Description |
|---|
TInformixAllocateCollectionStmt(EDbVendor dbvendor) |
TInformixAllocateDescriptorStmt(EDbVendor dbvendor) |
TInformixAllocateRow(EDbVendor dbvendor) |
TInformixAlterAccess_MethodStmt(EDbVendor dbvendor) |
TInformixAlterFragment(EDbVendor dbvendor) |
TInformixCreateFunction(EDbVendor dbvendor) |
TInformixCreateProcedure(EDbVendor dbvendor) |
TInformixCreateRowTypeStmt(EDbVendor dbvendor) |
TInformixCreateTrigger(EDbVendor dbvendor)
Deprecated.
|
TInformixDropRowTypeStmt(EDbVendor dbvendor) |
TInformixExecuteFunction(EDbVendor dbvendor) |
TInformixExecuteImmediate(EDbVendor dbvendor) |
TInformixExecuteProcedure(EDbVendor dbvendor) |
TInformixExecuteStmt(EDbVendor dbvendor) |
| Constructor and Description |
|---|
TNetezzaGenerateStatistics(EDbVendor dbvendor) |
TNetezzaGroomTable(EDbVendor dbvendor) |
| Constructor and Description |
|---|
TDropRoleSqlStatement(EDbVendor dbvendor) |
TForEachStmt(EDbVendor dbvendor) |
TGrantSqlStatement(EDbVendor dbvendor)
Deprecated.
|
TLockSqlStatement(EDbVendor dbvendor)
Deprecated.
|
TMoveStmt(EDbVendor dbvendor) |
TNullStmt(EDbVendor dbvendor) |
TPerformanceStmt(EDbVendor dbvendor) |
TPgImport(EDbVendor dbvendor) |
TPlsqlCreateTriggerSqlStatement(EDbVendor dbvendor)
Deprecated.
|
TPostgresqlTableStmt(EDbVendor dbvendor) |
TRefreshMaterializedViewStmt(EDbVendor dbvendor) |
TSetSearchPathStmt(EDbVendor dbvendor)
Deprecated.
|
TShowSearchPathStmt(EDbVendor dbvendor) |
| Constructor and Description |
|---|
TPowerQueryDocumentStmt(EDbVendor dbvendor) |
TPowerQueryStmt(EDbVendor dbvendor) |
| Constructor and Description |
|---|
TResetSessionStmt(EDbVendor dbvendor) |
| Constructor and Description |
|---|
TCacheTable(EDbVendor dbvendor) |
TRefresh(EDbVendor dbvendor) |
TResourceManagement(EDbVendor dbvendor) |
| Constructor and Description |
|---|
TAttachStmt(EDbVendor dbvendor) |
TDetachStmt(EDbVendor dbvendor) |
TPragmaStmt(EDbVendor dbvendor) |
TSqliteCreateVirtualTableStmt(EDbVendor dbvendor) |
| Constructor and Description |
|---|
TInsertBulk(EDbVendor dbvendor) |
TSybaseDeleteStatistics(EDbVendor dbvendor) |
TSybaseDumpTran(EDbVendor dbvendor) |
TSybaseUpdateIndexStatistics(EDbVendor dbvendor) |
TSybaseWritetext(EDbVendor dbvendor) |
| Modifier and Type | Method and Description |
|---|---|
EDbVendor |
Identifier.getVendor() |
| Modifier and Type | Method and Description | |||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
static Set<Integer> |
TBuiltFunctionUtil.argumentsIncludeKeyword(EDbVendor vendor,
String function) |
|||||||||||||||||||||||||||||||||||||||||||||
static CanonKey |
SQLUtil.canonKey(EDbVendor dbVendor,
ESQLDataObjectType objectType,
String identifier)
Canonical identity key of a single identifier segment — key equality is exactly
SQLUtil.sameName(gudusoft.gsqlparser.EDbVendor, gudusoft.gsqlparser.sqlenv.ESQLDataObjectType, java.lang.String, java.lang.String) (see CanonKey; in-process
only, never persist). |
|||||||||||||||||||||||||||||||||||||||||||||
static LinkedHashMap<String,keywordChecker.keywordType> |
keywordChecker.checkKeywordType(String inputString,
EDbVendor dbvendor) |
|||||||||||||||||||||||||||||||||||||||||||||
static String |
functionChecker.compareBuiltInFunctionList(EDbVendor dbvendor1,
String dbVersion1,
EDbVendor dbvendor2,
String dbVersion2) |
|||||||||||||||||||||||||||||||||||||||||||||
static boolean |
SQLUtil.compareIdentifier(EDbVendor dbVendor,
ESQLDataObjectType sqlDataObjectType,
String identifier1,
String identifier2) |
|||||||||||||||||||||||||||||||||||||||||||||
static String |
keywordChecker.compareKeywordList(EDbVendor dbvendor1,
String dbVersion1,
EDbVendor dbvendor2,
String dbVersion2,
boolean reservedOnly) |
|||||||||||||||||||||||||||||||||||||||||||||
static boolean |
keywordChecker.containsDbVersion(EDbVendor dbvendor,
String dbVersion) |
|||||||||||||||||||||||||||||||||||||||||||||
static boolean |
functionChecker.containsDbVersion(EDbVendor dbvendor,
String dbVersion) |
|||||||||||||||||||||||||||||||||||||||||||||
static String |
SQLUtil.decodeDelimitedName(EDbVendor vendor,
ESQLDataObjectType objectType,
String name)
Decode a delimited identifier spelling to the undelimited name a catalog
stores, WITHOUT case folding:
[Volgorde], "Volgorde",
`Volgorde` and the SQL Server legacy column-alias form
'Volgorde' all decode to Volgorde, and escaped delimiters
resolve ([Esc]]aped] → Esc]aped). |
|||||||||||||||||||||||||||||||||||||||||||||
static String |
SQLUtil.formatSql(EDbVendor dbVendor,
String inputQuery) |
|||||||||||||||||||||||||||||||||||||||||||||
static List<String> |
keywordChecker.getAvailableDbVersions(EDbVendor dbvendor)
|