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-08-22 UTC."],[[["\u003cp\u003eThe content provides a comprehensive list of Google Cloud Spanner C++ client library versions, ranging from the latest release candidate (2.37.0-rc) down to version 2.11.0.\u003c/p\u003e\n"],["\u003cp\u003eThis documentation details the \u003ccode\u003eConnection\u003c/code\u003e class, which defines the pure-virtual methods for interacting with a Spanner database, allowing users to inject custom behavior for testing.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eConnection\u003c/code\u003e class interfaces with \u003ccode\u003eClient\u003c/code\u003e methods like \u003ccode\u003eRead()\u003c/code\u003e, \u003ccode\u003eExecuteQuery()\u003c/code\u003e, \u003ccode\u003eCommit()\u003c/code\u003e, and more, forwarding their overloads to corresponding pure-virtual methods.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation outlines the various virtual functions available within the \u003ccode\u003eConnection\u003c/code\u003e class, including methods for reading, querying, DML operations, partitioning, and transaction management.\u003c/p\u003e\n"],["\u003cp\u003eUsers seeking to establish a connection with a live Spanner database can utilize the \u003ccode\u003eMakeConnection()\u003c/code\u003e function as stated within the documentation.\u003c/p\u003e\n"]]],[],null,[]]