Package | Description |
---|---|
com.google.cloud.spanner |
A client for Cloud Spanner - A no-compromise relational database service.
|
com.google.cloud.spanner.spi.v1 | |
com.google.cloud.spanner.testing |
Modifier and Type | Method and Description |
---|---|
Database |
Database.Builder.build() |
abstract Database |
DatabaseInfo.Builder.build()
Builds the database from this builder.
|
Database |
Instance.getDatabase(String databaseId) |
Database |
DatabaseAdminClient.getDatabase(String instanceId,
String databaseId)
Gets the current state of a Cloud Spanner database.
|
Database |
Database.reload()
Fetches the database's current information.
|
Modifier and Type | Method and Description |
---|---|
OperationFuture<Database,CreateDatabaseMetadata> |
DatabaseAdminClient.createDatabase(Database database,
Iterable<String> statements)
Creates a database in a Cloud Spanner instance.
|
OperationFuture<Database,CreateDatabaseMetadata> |
Instance.createDatabase(String databaseId,
Iterable<String> statements)
Creates a new database in this instance.
|
default OperationFuture<Database,CreateDatabaseMetadata> |
DatabaseAdminClient.createDatabase(String instanceId,
String createDatabaseStatement,
Dialect dialect,
Iterable<String> statements)
Creates a new database in a Cloud Spanner instance with the given
Dialect . |
OperationFuture<Database,CreateDatabaseMetadata> |
DatabaseAdminClient.createDatabase(String instanceId,
String databaseId,
Iterable<String> statements)
Creates a new database in a Cloud Spanner instance.
|
Page<Database> |
Instance.listDatabases(Options.ListOption... options) |
Page<Database> |
DatabaseAdminClient.listDatabases(String instanceId,
Options.ListOption... options)
Returns the list of Cloud Spanner database in the given instance.
|
OperationFuture<Database,RestoreDatabaseMetadata> |
Backup.restore(DatabaseId database)
Restores this backup to the specified database.
|
OperationFuture<Database,RestoreDatabaseMetadata> |
DatabaseAdminClient.restoreDatabase(Restore restore)
Restore a database from a backup.
|
OperationFuture<Database,RestoreDatabaseMetadata> |
DatabaseAdminClient.restoreDatabase(String backupInstanceId,
String backupId,
String restoreInstanceId,
String restoreDatabaseId)
Restore a database from a backup.
|
Modifier and Type | Method and Description |
---|---|
OperationFuture<Database,CreateDatabaseMetadata> |
DatabaseAdminClient.createDatabase(Database database,
Iterable<String> statements)
Creates a database in a Cloud Spanner instance.
|
Modifier and Type | Method and Description |
---|---|
OperationFuture<Database,CreateDatabaseMetadata> |
GapicSpannerRpc.createDatabase(String instanceName,
String createDatabaseStatement,
Iterable<String> additionalStatements,
Database databaseInfo) |
OperationFuture<Database,CreateDatabaseMetadata> |
SpannerRpc.createDatabase(String instanceName,
String createDatabaseStatement,
Iterable<String> additionalStatements,
Database database) |
Modifier and Type | Method and Description |
---|---|
Database |
RemoteSpannerHelper.createTestDatabase(Dialect dialect,
Iterable<String> statements)
Creates a test database defined by
statements in the test instance. |
Database |
RemoteSpannerHelper.createTestDatabase(Iterable<String> statements) |
Database |
RemoteSpannerHelper.createTestDatabase(String... statements)
Creates a test database defined by
statements . |
Modifier and Type | Method and Description |
---|---|
BatchClient |
RemoteSpannerHelper.getBatchClient(Database db) |
DatabaseClient |
RemoteSpannerHelper.getDatabaseClient(Database db) |
Copyright © 2022 Google LLC. All rights reserved.