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 details the \u003ccode\u003eConnection\u003c/code\u003e interface for Spanner database interactions, providing pure-virtual methods that mirror the user-facing overloads found in the \u003ccode\u003eClient\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThis \u003ccode\u003eConnection\u003c/code\u003e interface enables users to inject custom behaviors into a \u003ccode\u003eClient\u003c/code\u003e object, useful for testing scenarios.\u003c/p\u003e\n"],["\u003cp\u003eThe document provides links for versions ranging from 2.11.0 all the way up to the latest release candidate 2.37.0-rc, allowing one to explore documentation for all of them.\u003c/p\u003e\n"],["\u003cp\u003eThe interface provides a collection of functions for data manipulation, including \u003ccode\u003eRead\u003c/code\u003e, \u003ccode\u003ePartitionRead\u003c/code\u003e, \u003ccode\u003eExecuteQuery\u003c/code\u003e, \u003ccode\u003eExecuteDml\u003c/code\u003e, and other database-related actions.\u003c/p\u003e\n"],["\u003cp\u003eThe connection class contains the functions \u003ccode\u003eoptions()\u003c/code\u003e, which returns the option used, and \u003ccode\u003eMakeConnection()\u003c/code\u003e, which creates a concrete instance that connects to a real Spanner database.\u003c/p\u003e\n"]]],[],null,[]]