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 provided content details the \u003ccode\u003eConnection\u003c/code\u003e interface for interacting with a Spanner database instance, outlining methods available for various operations.\u003c/p\u003e\n"],["\u003cp\u003eThis interface defines pure-virtual methods that mirror user-facing overload sets in \u003ccode\u003eClient\u003c/code\u003e, allowing for custom behavior injection in tests.\u003c/p\u003e\n"],["\u003cp\u003eIt supports multiple versions of the Spanner connection class, with version 2.37.0-rc being the latest and 2.17.0 being referenced as the relevant version for the documentation.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eConnection\u003c/code\u003e interface includes functions like \u003ccode\u003eRead\u003c/code\u003e, \u003ccode\u003eExecuteQuery\u003c/code\u003e, \u003ccode\u003eCommit\u003c/code\u003e, and \u003ccode\u003eRollback\u003c/code\u003e, each with corresponding parameters and return types as detailed in the content.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMakeConnection()\u003c/code\u003e method is used to create a concrete instance for connecting to a real Spanner database, as opposed to a mock instance.\u003c/p\u003e\n"]]],[],null,[]]