Uses of Class
com.google.cloud.spanner.Database
-
Packages that use Database 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 -
-
Uses of Database in com.google.cloud.spanner
Methods in com.google.cloud.spanner that return Database Modifier and Type Method Description Database
Database.Builder. build()
abstract Database
DatabaseInfo.Builder. build()
Builds the database from this builder.Database
DatabaseAdminClient. getDatabase(String instanceId, String databaseId)
Gets the current state of a Cloud Spanner database.Database
Instance. getDatabase(String databaseId)
Database
Database. reload()
Fetches the database's current information.Methods in com.google.cloud.spanner that return types with arguments of type Database Modifier and Type Method Description com.google.api.gax.longrunning.OperationFuture<Database,CreateDatabaseMetadata>
DatabaseAdminClient. createDatabase(Database database, Iterable<String> statements)
Creates a database in a Cloud Spanner instance.default com.google.api.gax.longrunning.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 givenDialect
.com.google.api.gax.longrunning.OperationFuture<Database,CreateDatabaseMetadata>
DatabaseAdminClient. createDatabase(String instanceId, String databaseId, Iterable<String> statements)
Creates a new database in a Cloud Spanner instance.com.google.api.gax.longrunning.OperationFuture<Database,CreateDatabaseMetadata>
Instance. createDatabase(String databaseId, Iterable<String> statements)
Creates a new database in this instance.com.google.api.gax.paging.Page<Database>
DatabaseAdminClient. listDatabases(String instanceId, Options.ListOption... options)
Returns the list of Cloud Spanner database in the given instance.com.google.api.gax.paging.Page<Database>
Instance. listDatabases(Options.ListOption... options)
com.google.api.gax.longrunning.OperationFuture<Database,RestoreDatabaseMetadata>
Backup. restore(DatabaseId database)
Restores this backup to the specified database.com.google.api.gax.longrunning.OperationFuture<Database,RestoreDatabaseMetadata>
DatabaseAdminClient. restoreDatabase(Restore restore)
Restore a database from a backup.com.google.api.gax.longrunning.OperationFuture<Database,RestoreDatabaseMetadata>
DatabaseAdminClient. restoreDatabase(String backupInstanceId, String backupId, String restoreInstanceId, String restoreDatabaseId)
Restore a database from a backup.com.google.api.gax.longrunning.OperationFuture<Database,UpdateDatabaseMetadata>
DatabaseAdminClient. updateDatabase(Database database, DatabaseInfo.DatabaseField... fieldsToUpdate)
Updates a Cloud Spanner database.Methods in com.google.cloud.spanner with parameters of type Database Modifier and Type Method Description com.google.api.gax.longrunning.OperationFuture<Database,CreateDatabaseMetadata>
DatabaseAdminClient. createDatabase(Database database, Iterable<String> statements)
Creates a database in a Cloud Spanner instance.com.google.api.gax.longrunning.OperationFuture<Database,UpdateDatabaseMetadata>
DatabaseAdminClient. updateDatabase(Database database, DatabaseInfo.DatabaseField... fieldsToUpdate)
Updates a Cloud Spanner database. -
Uses of Database in com.google.cloud.spanner.spi.v1
Methods in com.google.cloud.spanner.spi.v1 with parameters of type Database Modifier and Type Method Description com.google.api.gax.longrunning.OperationFuture<Database,CreateDatabaseMetadata>
GapicSpannerRpc. createDatabase(String instanceName, String createDatabaseStatement, Iterable<String> additionalStatements, Database databaseInfo)
com.google.api.gax.longrunning.OperationFuture<Database,CreateDatabaseMetadata>
SpannerRpc. createDatabase(String instanceName, String createDatabaseStatement, Iterable<String> additionalStatements, Database database)
-
Uses of Database in com.google.cloud.spanner.testing
Methods in com.google.cloud.spanner.testing that return Database Modifier and Type Method Description Database
RemoteSpannerHelper. createTestDatabase(Dialect dialect, Iterable<String> statements)
Creates a test database defined bystatements
in the test instance.Database
RemoteSpannerHelper. createTestDatabase(Iterable<String> statements)
Database
RemoteSpannerHelper. createTestDatabase(String... statements)
Creates a test database defined bystatements
.Methods in com.google.cloud.spanner.testing with parameters of type Database Modifier and Type Method Description BatchClient
RemoteSpannerHelper. getBatchClient(Database db)
DatabaseClient
RemoteSpannerHelper. getDatabaseClient(Database db)
-