DefaultSchemaProvider
public interface SchemaProvider
Modifier and Type | Method | Description |
---|---|---|
List<QualifiedName> |
findTables(String dbName,
String tableNamePattern) |
Find all tables matching the specified pattern.
|
String |
getDbName(String dbName,
String tableName) |
Find the database containing this table.
|
List<String> |
getDbNames(String dbName) |
PRAGMA database_list
|
String |
getSchema(String dbName,
String tableName) |
List<QualifiedName> findTables(String dbName, String tableNamePattern) throws SQLException
dbName
- May be null to search in all databases, empty to search in "temp"
and "main"
.tableNamePattern
- LIKE pattern. May be null to retrieve all tables.SQLException
String getDbName(String dbName, String tableName) throws SQLException
dbName
- May be null to search in all databases, empty to search in "temp"
and "main"
.tableName
- Table name"temp"
or "main"
or attached database name.
If there is no table matching tableName
, the returned value is undefined.SQLException
String getSchema(String dbName, String tableName) throws SQLException
dbName
- null
means "main"
.tableName
- Table nameSQLException
List<String> getDbNames(String dbName) throws SQLException
dbName
- May be null to search in all databases, empty to search in "temp"
and "main"
.SQLException
Copyright © 2018. All rights reserved.