Package org.sqlite.parser
Interface SchemaProvider
- All Known Implementing Classes:
DefaultSchemaProvider
public interface SchemaProvider
-
Method Summary
Modifier and TypeMethodDescriptionfindTables
(String dbName, String tableNamePattern) Find all tables matching the specified pattern.Find the database containing this table.getDbNames
(String dbName) PRAGMA database_list
-
Method Details
-
findTables
Find all tables matching the specified pattern.- Parameters:
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.- Throws:
SQLException
-
getDbName
Find the database containing this table.- Parameters:
dbName
- May be null to search in all databases, empty to search in"temp"
and"main"
.tableName
- Table name- Returns:
"temp"
or"main"
or attached database name. If there is no table matchingtableName
, the returned value is undefined.- Throws:
SQLException
-
getSchema
- Parameters:
dbName
-null
means"main"
.tableName
- Table name- Returns:
- SQL used to create the specified table
- Throws:
SQLException
-
getDbNames
PRAGMA database_list- Parameters:
dbName
- May be null to search in all databases, empty to search in"temp"
and"main"
.- Throws:
SQLException
-