public class SpannerDatabaseInfo extends Object
DatabaseMetaData which contains
information about what tables and indices currently exist in the database.| Constructor and Description |
|---|
SpannerDatabaseInfo(DatabaseMetaData databaseMetaData)
Constructs the
SpannerDatabaseInfo by querying the Spanner database metadata. |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getAllIndices()
Returns the names of all the indices in the Spanner database.
|
Set<String> |
getAllTables()
Returns the table names in the Spanner database.
|
Set<String> |
getImportedForeignKeys(String tableName)
Returns the names of all the imported foreign keys for a specified
tableName. |
public SpannerDatabaseInfo(DatabaseMetaData databaseMetaData) throws SQLException
SpannerDatabaseInfo by querying the Spanner database metadata.SQLExceptionCopyright © 2022 Google LLC. All rights reserved.