| Package | Description |
|---|---|
| gudusoft.gsqlparser.nodes |
Provides the classes represents various SQL query parse tree node.
|
| gudusoft.gsqlparser.resolver | |
| gudusoft.gsqlparser.resolver2.metadata | |
| gudusoft.gsqlparser.resolver2.namespace | |
| gudusoft.gsqlparser.sqlenv | |
| gudusoft.gsqlparser.sqlenv.compat | |
| gudusoft.gsqlparser.stmt |
Provides the classes represent various SQL statements.
|
| Modifier and Type | Method and Description |
|---|---|
TSQLTable |
TTable.getResolvedTable() |
| Modifier and Type | Method and Description |
|---|---|
void |
TPivotInClause.linkColumnToTable(TTable table,
TSQLTable sqlTable) |
void |
TTable.setResolvedTable(TSQLTable resolvedTable) |
| Modifier and Type | Method and Description |
|---|---|
static TSQLTable |
TMetadataCollector.addDeclaredTable(TCreateTableSqlStatement stmt,
TSQLEnv env)
The catalog half of
TMetadataCollector.registerDeclaredTable(gudusoft.gsqlparser.stmt.TCreateTableSqlStatement, gudusoft.gsqlparser.sqlenv.TSQLEnv): put the declared table in env and return it, leaving
the statement as it is. |
static TSQLTable |
TMetadataCollector.addDeclaredTable(TCreateTableSqlStatement stmt,
TSQLEnv env,
String defaultCatalog,
String defaultSchema)
TMetadataCollector.addDeclaredTable(TCreateTableSqlStatement, TSQLEnv) in an explicit database and schema. |
static TSQLTable |
TMetadataCollector.findDeclaredTable(TCreateTableSqlStatement stmt,
TSQLEnv env,
String defaultCatalog,
String defaultSchema)
The table
env already holds where a declaration of stmt's table would go if env's current
database and schema were defaultCatalog and defaultSchema, or null. |
static TSQLTable |
TMetadataCollector.registerDeclaredTable(TCreateTableSqlStatement stmt,
TSQLEnv env)
Register only a schema declared by this CREATE, never an unknown LIKE/CLONE shape.
|
static TSQLTable |
TMetadataCollector.registerDeclaredTable(TCreateTableSqlStatement stmt,
TSQLEnv env,
String defaultCatalog,
String defaultSchema)
TMetadataCollector.registerDeclaredTable(TCreateTableSqlStatement, TSQLEnv) as if env's current database and schema
were defaultCatalog and defaultSchema, without changing them. |
| Modifier and Type | Method and Description |
|---|---|
static TSQLTable |
ParseTimeCatalog.searchTable(TCustomSqlStatement statement,
String database,
String schema,
String table)
The table Phase 1 of
statement reads under database.schema.table (the qualifiers may be empty)
before the parser's catalog: a transient table its routine declared before it, or a table the script declared
before it. |
| Modifier and Type | Method and Description |
|---|---|
TSQLTable |
TableNamespace.getResolvedTable()
Get the resolved TSQLTable from SQLEnv.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TableNamespace.setStatementMetadata(TSQLTable metadata,
QualifiedNameResolver resolver) |
| Modifier and Type | Method and Description |
|---|---|
TSQLTable |
TSQLEnv.addTable(String qualifiedTableName,
boolean fromDDL)
Add a new table to the SQLEnv.
|
TSQLTable |
TSQLEnv.addView(String qualifiedViewName,
boolean fromDDL) |
TSQLTable |
TSQLSchema.createTable(String tableName)
create a table belong to this schema.
|
TSQLTable |
TSQLSchema.createTable(String tableName,
int priority) |
TSQLTable |
TSQLSchema.findTable(String tableName) |
TSQLTable |
HierarchicalResolver.findTable(TSQLEnv env,
String qualifiedName)
查找表(便捷方法)
|
TSQLTable |
TSQLColumn.getSqlTable()
table include this column
|
TSQLTable |
TSQLTable.newVersion()
Replaces this table in its schema with a new table of the same name, columns, kind and definition, and returns
the new one.
|
TSQLTable |
TSQLSynonyms.resolveBaseTable()
Dereference this synonym to its base table/view by resolving the recorded
base target against the owning SQL environment.
|
TSQLTable |
TSQLEnv.searchTable(String qualifiedTablename)
find a table in the SQL environment by using a qualified table name: catalogName.schemaName.tableName
|
TSQLTable |
TSQLEnv.searchTable(TObjectName tableName) |
| Modifier and Type | Method and Description |
|---|---|
List<TSQLColumn> |
HierarchicalResolver.findAllColumns(TSQLTable table)
批量查找列(便捷方法)
|
TSQLColumn |
HierarchicalResolver.findColumn(TSQLTable table,
String columnName)
查找列(便捷方法)
|
| Constructor and Description |
|---|
TSQLColumn(TSQLTable sqlTable,
String columnName)
create a new column and add to the table
|
TSQLColumn(TSQLTable sqlTable,
String columnName,
TTypeName dataType) |
| Modifier and Type | Method and Description |
|---|---|
TSQLTable |
CatalogEntryToSQLEnvMapper.toTSQLTable(CatalogEntry entry,
TSQLEnv targetEnv) |
TSQLTable |
CatalogEntryToSQLEnvMapper.toTSQLTable(CatalogEntry entry,
TSQLEnv targetEnv,
List<CatalogEntry> columnChildren)
Materialize a TABLE entry and attach the supplied column entries.
|
TSQLTable |
CatalogEntryToSQLEnvMapper.toTSQLView(CatalogEntry entry,
TSQLEnv targetEnv)
Views are represented in the legacy model as
TSQLTable with view metadata. |
TSQLTable |
CatalogEntryToSQLEnvMapper.toTSQLView(CatalogEntry entry,
TSQLEnv targetEnv,
List<CatalogEntry> columnChildren)
Same as
CatalogEntryToSQLEnvMapper.toTSQLView(CatalogEntry, TSQLEnv) but with explicit column entries
for the lazy bridge path. |
| Modifier and Type | Method and Description |
|---|---|
void |
TSelectSqlStatement.addColumnInSelectListToSQLEnv(TSQLTable sqlTable) |