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` interface, which was the previous method of connecting to the Cloud Spanner instance administration service, now deprecated in favor of `DatabaseAdminClient` and `DatabaseAdminConnection`."],["The interface includes virtual methods for various database operations like creating, getting, updating, dropping, listing, and restoring databases, as well as managing backups and setting IAM policies."],["It supports defining interfaces for RPC calls related to database administration, including CreateDatabase, GetDatabase, GetDatabaseDdl, UpdateDatabase, DropDatabase, ListDatabases, RestoreDatabase, GetIamPolicy, SetIamPolicy, TestIamPermissions, CreateBackup, GetBackup, DeleteBackup, ListBackups, UpdateBackup, ListBackupOperations, and ListDatabaseOperations."],["The latest version of `DatabaseAdminConnection` available is 2.37.0-rc, and many other previous versions are also documented, allowing for referencing older version specifics."],["This interface allows for the injection of custom behavior using a Google Mock object for testing purposes when utilizing a `DatabaseAdminClient` object."]]],[]]