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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-22 UTC."],[[["\u003cp\u003eThis page details the \u003ccode\u003eDatabaseAdminConnection\u003c/code\u003e interface, which connects to the Cloud Spanner instance administration service.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDatabaseAdminConnection\u003c/code\u003e is deprecated and users should transition to \u003ccode\u003egoogle::cloud::spanner_admin::DatabaseAdminClient\u003c/code\u003e and \u003ccode\u003egoogle::cloud::spanner_admin::DatabaseAdminConnection\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe content provides a list of various versions, including a link to the latest release candidate, 2.37.0-rc, and several prior versions of the database admin connection.\u003c/p\u003e\n"],["\u003cp\u003eThe page contains definitions and descriptions of the interface for several RPCs such as \u003ccode\u003eCreateDatabase\u003c/code\u003e, \u003ccode\u003eGetDatabase\u003c/code\u003e, \u003ccode\u003eGetDatabaseDdl\u003c/code\u003e, \u003ccode\u003eUpdateDatabase\u003c/code\u003e, and more, along with their respective parameters and return types.\u003c/p\u003e\n"],["\u003cp\u003eThe methods that define the interfaces for the various RPCs provide the ability to interact with the database through operations like creating, restoring, updating, dropping and getting database details, managing backups and getting IAM policies.\u003c/p\u003e\n"]]],[],null,[]]