Skip navigation links

@Generated(value="by gapic-generator-java")

Package com.google.cloud.spanner.admin.database.v1

The interfaces provided are listed below, along with usage samples.

See: Description

Package com.google.cloud.spanner.admin.database.v1 Description

The interfaces provided are listed below, along with usage samples.

======================= DatabaseAdminClient =======================

Service Description: Cloud Spanner Database Admin API

The Cloud Spanner Database Admin API can be used to: * create, drop, and list databases * update the schema of pre-existing databases * create, delete and list backups for a database * restore a database from an existing backup

Sample for DatabaseAdminClient:


 // This snippet has been automatically generated for illustrative purposes only.
 // It may require modifications to work in your environment.
 try (DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.create()) {
   DatabaseName name = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]");
   Database response = databaseAdminClient.getDatabase(name);
 }
 
Skip navigation links

Copyright © 2022 Google LLC. All rights reserved.