A connection to the Cloud Spanner instance administration service.
This interface defines pure-virtual methods for each of the user-facing overload sets in DatabaseAdminClient. This allows users to inject custom behavior (e.g., with a Google Mock object) in a DatabaseAdminClient object for use in their own tests.
To create a concrete instance that connects you to a real Cloud Spanner instance administration service, see MakeDatabaseAdminConnection().
Functions
virtual options()
Returns
Type
Description
Options
CreateDatabase(CreateDatabaseParams)
Define the interface for a google.spanner.v1.DatabaseAdmin.CreateDatabase RPC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-14 UTC."],[[["The latest version of the `DatabaseAdminConnection` is 2.37.0-rc, and the page provides links to documentation for numerous previous versions, including versions 2.36.0, 2.35.0, and so on, down to version 2.11.0."],["`DatabaseAdminConnection` is a pure-virtual interface that allows users to connect to the Cloud Spanner instance administration service and define methods such as `CreateDatabase`, `GetDatabase`, and `DropDatabase`."],["Users should now utilize the `google::cloud::spanner_admin::DatabaseAdminClient` and `google::cloud::spanner_admin::DatabaseAdminConnection` classes instead of the deprecated `DatabaseAdminConnection`."],["`DatabaseAdminConnection` provides a way to inject custom behavior into a `DatabaseAdminClient` object for testing purposes, and `MakeDatabaseAdminConnection()` is used to create a concrete instance for connecting to a real Cloud Spanner service."],["`DatabaseAdminConnection` offers a range of functions for managing databases and backups, such as `CreateBackup`, `GetBackup`, `DeleteBackup`, `RestoreDatabase`, and `UpdateDatabase`, alongside functions to get and set IAM policy."]]],[]]