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"]],[["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-21 UTC."],[[["The content provides a comprehensive list of versioned documentation links for the `Connection` class within the Google Cloud Spanner C++ library, starting from version 2.37.0-rc down to 2.11.0."],["The `Connection` class serves as an interface for interacting with a Spanner database instance, defining methods that mirror those found in the `Client` class."],["The `Connection` class uses pure-virtual methods, allowing users to implement custom behaviors for testing purposes."],["The content outlines various methods available within the `Connection` class, including `Read`, `ExecuteQuery`, `Commit`, and `Rollback`, among others, along with their respective parameters and return types."],["The provided documentation is for version 2.26.0, which describes the interface and functions of the connection in that version."]]],[]]