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"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-14 UTC."],[[["This document outlines the `Connection` interface for interacting with a Spanner database, offering various versions from 2.11.0 up to the latest release candidate 2.37.0-rc."],["The `Connection` interface provides pure-virtual methods corresponding to each user-facing overload in `Client`, enabling custom behavior injection for testing, including `Read`, `ExecuteQuery`, and `Commit`."],["It allows the creation of a concrete instance that connects to a real Spanner database using the `MakeConnection()` function, as well as defines several methods for performing specific operations."],["Key functionalities include reading data, executing SQL queries and DML statements, profiling queries, partitioning operations, batching DML, committing transactions, rolling back transactions, and performing batched writes."],["The interface also includes methods to access the options used by the connection, as well as methods that define interfaces for querying and analyzing SQL statements, such as `AnalyzeSql`, `PartitionQuery`, and `ProfileQuery`."]]],[]]