DefaultSchemaProviderpublic 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.SQLExceptionString 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.SQLExceptionString getSchema(String dbName, String tableName) throws SQLException
dbName - null means "main".tableName - Table nameSQLExceptionList<String> getDbNames(String dbName) throws SQLException
dbName - May be null to search in all databases, empty to search in "temp" and "main".SQLExceptionCopyright © 2018. All rights reserved.