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-04-09 UTC."],[[["This page details the `DatabaseAdminConnection` class, which establishes a connection to the Cloud Spanner instance administration service."],["This connection class is now deprecated, and users are directed to use `DatabaseAdminClient` and `DatabaseAdminConnection` from the `google::cloud::spanner_admin` namespace instead."],["The `DatabaseAdminConnection` class offers various methods, such as `CreateDatabase`, `GetDatabase`, `UpdateDatabase`, and more, for interacting with Cloud Spanner database administration."],["This interface uses pure-virtual methods, enabling the injection of custom behavior for testing purposes, using objects like `Google Mock`."],["The page also documents many different versions of this service from version 2.11.0 to the latest version 2.37.0-rc."]]],[]]