15#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_SPANNER_MOCKS_MOCK_SPANNER_CONNECTION_H
16#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_SPANNER_MOCKS_MOCK_SPANNER_CONNECTION_H
18#include "google/cloud/spanner/connection.h"
19#include "google/cloud/spanner/query_partition.h"
20#include "google/cloud/spanner/read_partition.h"
21#include "google/cloud/spanner/row.h"
22#include "google/cloud/spanner/version.h"
23#include <gmock/gmock.h>
31GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
34
35
36
37
38
39
40
41
42
70
71
72
73
77 MOCK_METHOD(absl::optional<
google::spanner::v1::ResultSetMetadata>, Metadata,
79 MOCK_METHOD(absl::optional<
google::spanner::v1::ResultSetStats>, Stats, (),
83GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
A connection to a Spanner database instance.
Definition: connection.h:59
Represents the result of a data modifying operation using spanner::Client::ExecuteDml().
Definition: results.h:146
Represents the result and profile stats of a data modifying operation using spanner::Client::ProfileD...
Definition: results.h:244
Represents the stream of Rows and profile stats returned from spanner::Client::ProfileQuery().
Definition: results.h:186
The QueryPartition class is a regular type that represents a single slice of a parallel SQL read.
Definition: query_partition.h:89
The ReadPartition class is a regular type that represents a single slice of a parallel Read operation...
Definition: read_partition.h:90
Defines the interface for RowStream implementations.
Definition: results.h:42
Represents the stream of Rows returned from spanner::Client::Read() or spanner::Client::ExecuteQuery(...
Definition: results.h:101
A Row is a sequence of columns each with a name and an associated Value.
Definition: row.h:84
An inlined versioned namespace to avoid dependency diamonds.
Definition: mock_spanner_connection.h:43
Mock the results of a ExecuteQuery() or Read() operation.
Definition: mock_spanner_connection.h:74
Define classes to mock the Cloud Spanner C++ client APIs.
Definition: mock_database_admin_connection.h:24
Contains all the Cloud Spanner C++ client types and functions.
Definition: backoff_policy.h:23
The result of executing a batch of DML statements.
Definition: batch_dml_result.h:39
The result of committing a Transaction.
Definition: commit_result.h:38
Wrap the arguments to Commit().
Definition: connection.h:121
Wrap the arguments to ExecuteBatchDml().
Definition: connection.h:114
Wrap the arguments to ExecutePartitionedDml().
Definition: connection.h:101
Wrap the arguments to PartitionQuery().
Definition: connection.h:107
Wrap the arguments to PartitionRead().
Definition: connection.h:85
Wrap the arguments to Read().
Definition: connection.h:74
Wrap the arguments to Rollback().
Definition: connection.h:128
Wrap the arguments to ExecuteQuery(), ExecuteDml(), ProfileQuery(), ProfileDml(), and AnalyzeSql().
Definition: connection.h:92
The result of executing a Partitioned DML query.
Definition: partitioned_dml_result.h:29