This interface defines pure-virtual methods for each of the user-facing overload sets in Client. That is, all of Client's Read() overloads will forward to the one pure-virtual Read() method declared in this interface, and similar for Client's other methods. This allows users to inject custom behavior (e.g., with a Google Mock object) in a Client object for use in their own tests.
To create a concrete instance that connects you to a real Spanner database, see MakeConnection().
[[["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-07-02 UTC."],[[["This document provides an overview of the `Connection` interface for the Spanner database, specifically within the context of C++ development, with version `2.19.0` being the selected version, while offering links to versions ranging from `2.11.0` up to `2.37.0-rc`."],["The `Connection` interface defines pure-virtual methods that correspond to the user-facing overload sets in the `Client` class, enabling the injection of custom behavior for testing purposes, such as using a Google Mock object."],["The document provides methods of the `Client` interface, such as `Read`, `PartitionRead`, `ExecuteQuery`, `ExecuteDml`, and `Commit`, among others, and their functions when it comes to interacting with a Spanner database."],["The `Connection` interface outlines the interface to connect to a real Spanner database using `MakeConnection()` to create a concrete instance."]]],[]]