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. It also enables updating the schema of pre-existing databases. It can be also used to create, delete and list backups for a database and to restore from an existing backup.

Sample for DatabaseAdminClient:


 try (DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.create()) {
   DatabaseName name = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]");
   Database response = databaseAdminClient.getDatabase(name);
 }
 
Skip navigation links

Copyright © 2021 Google LLC. All rights reserved.