Skip navigation links

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

A client to Cloud Spanner Database Admin API.

See: Description

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

A client to Cloud Spanner Database Admin API.

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.

Sample for DatabaseAdminClient:

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

Copyright © 2019 Google LLC. All rights reserved.