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 document details the `DatabaseAdminConnection` class, which was once used to interface with the Cloud Spanner instance administration service, but has been deprecated."],["The `DatabaseAdminConnection` class provides pure-virtual methods for user-facing overload sets found in `DatabaseAdminClient`, enabling custom behavior injection for testing."],["The document provides a list of available C++ library versions, with `2.37.0-rc` being the latest release candidate, and links to the `DatabaseAdminConnection` documentation for each version."],["This interface includes methods for managing databases and backups, such as `CreateDatabase`, `GetDatabase`, `UpdateDatabase`, `CreateBackup`, `GetBackup`, `ListBackups`, and more."],["To interact with a Cloud Spanner instance administration service, it is recommended to use `google::cloud::spanner_admin::DatabaseAdminClient` and `google::cloud::spanner_admin::DatabaseAdminConnection`, as directed by the deprecation notice."]]],[]]