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."],[[["This page details the `DatabaseAdminConnection` interface, which has been deprecated in favor of `DatabaseAdminClient` and `DatabaseAdminConnection` within the `google::cloud::spanner_admin` namespace."],["The `DatabaseAdminConnection` interface provides pure-virtual methods corresponding to each user-facing overload set within the `DatabaseAdminClient`, allowing for custom behaviors during testing."],["The documentation covers a range of functions related to database administration, such as creating, getting, updating, dropping, and listing databases, along with managing database DDL and backups."],["The latest version reference link is [2.37.0-rc](/cpp/docs/reference/spanner/latest/classgoogle_1_1cloud_1_1spanner_1_1DatabaseAdminConnection), while the page also provides links to older versions, including version 2.14.0, the current version mentioned in the provided content."],["The page describes different functions that take parameters and return various StatusOr types and ListRanges, to allow for the administration of the Spanner Database."]]],[]]