Package | Description |
---|---|
com.google.cloud.spanner |
A client for Cloud Spanner - A no-compromise relational database service.
|
com.google.cloud.spanner.connection |
Internal API for Google Cloud Spanner.
|
Modifier and Type | Method and Description |
---|---|
DatabaseId |
BackupInfo.getDatabase()
Returns the id of the database that was used to create the backup.
|
DatabaseId |
Restore.getDestination() |
DatabaseId |
DatabaseInfo.getId()
Returns the database id.
|
DatabaseId |
RestoreInfo.getSourceDatabase()
The source database that was used to create the backup.
|
static DatabaseId |
DatabaseId.of(InstanceId instanceId,
String database)
Creates a
DatabaseId given the instance identity and database id. |
static DatabaseId |
DatabaseId.of(String name)
Creates a
DatabaseId from the name of the database. |
static DatabaseId |
DatabaseId.of(String project,
String instance,
String database)
Creates a
DatabaseId given project, instance and database IDs. |
Modifier and Type | Method and Description |
---|---|
BatchClient |
Spanner.getBatchClient(DatabaseId db)
Returns a
BatchClient to do batch operations on Cloud Spanner databases. |
DatabaseClient |
Spanner.getDatabaseClient(DatabaseId db)
Returns a
DatabaseClient for the given database. |
ExecuteSqlRequest.QueryOptions |
SpannerOptions.getDefaultQueryOptions(DatabaseId databaseId)
Returns the default query options to use for the specific database.
|
Database.Builder |
DatabaseAdminClient.newDatabaseBuilder(DatabaseId id)
Returns a builder for a
Database object with the given id. |
Restore.Builder |
DatabaseAdminClient.newRestoreBuilder(BackupId source,
DatabaseId destination)
Returns a builder for a
Restore object with the given source and destination |
OperationFuture<Database,RestoreDatabaseMetadata> |
Backup.restore(DatabaseId database)
Restores this backup to the specified database.
|
abstract BackupInfo.Builder |
BackupInfo.Builder.setDatabase(DatabaseId database)
Required for creating a new backup.
|
SpannerOptions.Builder |
SpannerOptions.Builder.setDefaultQueryOptions(DatabaseId database,
ExecuteSqlRequest.QueryOptions defaultQueryOptions)
Sets the default
ExecuteSqlRequest.QueryOptions that will be used for all queries on the specified
database. |
Constructor and Description |
---|
Builder(BackupId source,
DatabaseId destination) |
Database(DatabaseId id,
DatabaseInfo.State state,
DatabaseAdminClient dbClient) |
DatabaseInfo(DatabaseId id,
DatabaseInfo.State state) |
Modifier and Type | Method and Description |
---|---|
DatabaseId |
ConnectionOptions.getDatabaseId()
The Spanner
DatabaseId that this ConnectionOptions will connect to |
Copyright © 2022 Google LLC. All rights reserved.