| Package | Description |
|---|---|
| gudusoft.gsqlparser.sqlenv | |
| gudusoft.gsqlparser.sqlenv.catalog |
| Modifier and Type | Method and Description |
|---|---|
TSQLCatalog |
TSQLEnv.createSQLCatalog(String catalogName)
create a new catalog/database in the SQL environment.
|
TSQLCatalog |
TSQLSchema.getCatalog() |
TSQLCatalog |
TSQLEnv.getSQLCatalog(String catalogName,
boolean createIfNotExist)
get a catalog from the SQL environment if already exists, otherwise, create a new catalog.
|
TSQLCatalog |
TSQLEnv.searchCatalog(String catalogName)
search catalog in the catalog list, return null if not found.
|
| Modifier and Type | Method and Description |
|---|---|
List<TSQLCatalog> |
TSQLEnv.getCatalogList()
a list of catalog/database in this SQL environment.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
TSQLEnv.doAddCatalog(TSQLCatalog sqlCatalog)
add a catalog to the SQL environment, called internally.
|
| Constructor and Description |
|---|
TSQLSchema(TSQLCatalog sqlCatalog,
String schemaName)
Create a new instance of the schema, added to the catalog.
|
| Modifier and Type | Method and Description |
|---|---|
TSQLCatalog |
LegacyCatalogProvider.createCatalog(String catalogName) |
TSQLCatalog |
CatalogStoreProvider.createCatalog(String catalogName) |
TSQLCatalog |
ICatalogProvider.createCatalog(String catalogName)
创建 catalog(已存在则返回现有)
|
TSQLCatalog |
LegacyCatalogProvider.getCatalog(String catalogName) |
TSQLCatalog |
CatalogStoreProvider.getCatalog(String catalogName) |
TSQLCatalog |
ICatalogProvider.getCatalog(String catalogName)
获取 catalog(不存在返回 null)
|
| Modifier and Type | Method and Description |
|---|---|
List<TSQLCatalog> |
LegacyCatalogProvider.getAllCatalogs() |
List<TSQLCatalog> |
CatalogStoreProvider.getAllCatalogs() |
List<TSQLCatalog> |
ICatalogProvider.getAllCatalogs()
获取所有 catalog
|
| Modifier and Type | Method and Description |
|---|---|
void |
CatalogStoreProvider.registerCatalog(TSQLCatalog catalog)
Register a catalog in the cache (used by TSQLEnv during migration)
|
| Constructor and Description |
|---|
LegacyCatalogProvider(TSQLEnv sqlEnv,
List<TSQLCatalog> catalogList) |