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 outlines various versions of the Spanner Connection class, with version 2.37.0-rc being the latest and version 2.16.0 being the lowest version discussed.\u003c/p\u003e\n"],["\u003cp\u003eThe Connection class provides an interface for interacting with a Spanner database instance, with the Client class forwarding method calls to this class.\u003c/p\u003e\n"],["\u003cp\u003eThis interface allows custom behavior injection into the Client object, useful for testing purposes.\u003c/p\u003e\n"],["\u003cp\u003eThe interface has virtual functions for various database operations, including reading, querying, executing DML, profiling queries and DML, analyzing SQL, and managing transactions.\u003c/p\u003e\n"],["\u003cp\u003eThe content provides a list of \u003ccode\u003evirtual\u003c/code\u003e functions, each of which defines an interface for a \u003ccode\u003eClient\u003c/code\u003e action, including but not limited to \u003ccode\u003eRead\u003c/code\u003e, \u003ccode\u003ePartitionRead\u003c/code\u003e, and \u003ccode\u003eExecuteQuery\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]