Creates a spanner::Row with the specified column names and values.
This overload accepts a vector of pairs, allowing the caller to specify both the column names and the spanner::Value that goes in each column.
This function is intended for application developers who are mocking the results of a Client::ExecuteQuery call.
Parameter
Name
Description
pairs
Returns
Type
Description
spanner::Row
MakeRow(Ts &&...)
Creates a spanner::Row with spanner::Values created from the given arguments and with auto-generated column names.
This overload accepts a variadic list of arguments that will be used to create the spanner::Values in the row. The column names will be implicitly generated, the first column being "0", the second "1", and so on, corresponding to the argument's position.
This function is intended for application developers who are mocking the results of a Client::ExecuteQuery call.
[[["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-07-08 UTC."],[[["This document provides access to various versions of the Google Cloud Spanner C++ client mocks, ranging from version 2.11.0 up to the release candidate 2.37.0-rc."],["The primary purpose of these mocks is to enable developers to simulate and test interactions with the Cloud Spanner API within their C++ applications."],["It outlines several key mock classes, including `MockConnection`, `MockDatabaseAdminConnection`, `MockInstanceAdminConnection`, and `MockResultSetSource`, each designed to mock different aspects of the Spanner API."],["The document details functions like `MakeRow`, offering two overloads to create `spanner::Row` objects, which are used for mocking the results of `ExecuteQuery` or `Read` operations in tests, with options to specify column names and values or use auto-generated names."],["These resources are intended for C++ application developers seeking to mock Cloud Spanner functionalities for testing and development purposes, using the various available versions."]]],[]]