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 document provides documentation for various versions of the \u003ccode\u003egoogle::cloud::spanner::Connection\u003c/code\u003e class, with version 2.37.0-rc being the latest and 2.23.0 as the version focused on within the content.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eConnection\u003c/code\u003e class serves as an interface with pure-virtual methods that mirror the user-facing overload sets found in the \u003ccode\u003eClient\u003c/code\u003e class, allowing for custom behavior injection during testing.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eConnection\u003c/code\u003e is designed to facilitate interactions with a Spanner database, with a virtual \u003ccode\u003eoptions()\u003c/code\u003e function that allows the user to see the Options utilized by the Connection.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eConnection\u003c/code\u003e interface defines methods for operations like \u003ccode\u003eRead\u003c/code\u003e, \u003ccode\u003ePartitionRead\u003c/code\u003e, \u003ccode\u003eExecuteQuery\u003c/code\u003e, \u003ccode\u003eExecuteDml\u003c/code\u003e, \u003ccode\u003eProfileQuery\u003c/code\u003e, and several others that interact with Spanner databases.\u003c/p\u003e\n"],["\u003cp\u003eThe provided documentation has various interfaces that specify the parameters and the returns for the methods used to connect to a Spanner database, including, \u003ccode\u003eReadParams\u003c/code\u003e, \u003ccode\u003eSqlParams\u003c/code\u003e, \u003ccode\u003eCommitParams\u003c/code\u003e, and more.\u003c/p\u003e\n"]]],[],null,[]]