Google Cloud Spanner C++ Client
1.32.0
A C++ Client Library for Google Cloud Spanner
|
A connection to a Spanner database instance. More...
#include <google/cloud/spanner/connection.h>
Classes | |
struct | CommitParams |
Wrap the arguments to Commit() . More... | |
struct | ExecuteBatchDmlParams |
Wrap the arguments to ExecuteBatchDml() . More... | |
struct | ExecutePartitionedDmlParams |
Wrap the arguments to ExecutePartitionedDml() . More... | |
struct | PartitionQueryParams |
Wrap the arguments to PartitionQuery() . More... | |
struct | PartitionReadParams |
Wrap the arguments to PartitionRead() . More... | |
struct | ReadParams |
Wrap the arguments to Read() . More... | |
struct | RollbackParams |
Wrap the arguments to Rollback() . More... | |
struct | SqlParams |
Wrap the arguments to ExecuteQuery() , ExecuteDml() , ProfileQuery() , ProfileDml() , and AnalyzeSql() . More... | |
Public Member Functions | |
virtual | ~Connection ()=default |
Defines the arguments for each member function. | |
Applications may define classes derived from To avoid breaking all such derived classes when we change the number or type of the arguments to the member functions we define light weight structures to pass the arguments. | |
virtual RowStream | Read (ReadParams)=0 |
Defines the interface for Client::Read() More... | |
virtual StatusOr< std::vector< ReadPartition > > | PartitionRead (PartitionReadParams)=0 |
Defines the interface for Client::PartitionRead() More... | |
virtual RowStream | ExecuteQuery (SqlParams)=0 |
Defines the interface for Client::ExecuteQuery() More... | |
virtual StatusOr< DmlResult > | ExecuteDml (SqlParams)=0 |
Defines the interface for Client::ExecuteDml() More... | |
virtual ProfileQueryResult | ProfileQuery (SqlParams)=0 |
Defines the interface for Client::ProfileQuery() More... | |
virtual StatusOr< ProfileDmlResult > | ProfileDml (SqlParams)=0 |
Defines the interface for Client::ProfileDml() More... | |
virtual StatusOr< ExecutionPlan > | AnalyzeSql (SqlParams)=0 |
Defines the interface for Client::AnalyzeSql() More... | |
virtual StatusOr< PartitionedDmlResult > | ExecutePartitionedDml (ExecutePartitionedDmlParams)=0 |
Defines the interface for Client::ExecutePartitionedDml() More... | |
virtual StatusOr< std::vector< QueryPartition > > | PartitionQuery (PartitionQueryParams)=0 |
Defines the interface for Client::PartitionQuery() More... | |
virtual StatusOr< BatchDmlResult > | ExecuteBatchDml (ExecuteBatchDmlParams)=0 |
Defines the interface for Client::ExecuteBatchDml() More... | |
virtual StatusOr< CommitResult > | Commit (CommitParams)=0 |
Defines the interface for Client::Commit() More... | |
virtual Status | Rollback (RollbackParams)=0 |
Defines the interface for Client::Rollback() More... | |
A connection to a Spanner database instance.
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()
.
Definition at line 59 of file connection.h.
|
virtualdefault |
|
pure virtual |
Defines the interface for Client::AnalyzeSql()
|
pure virtual |
Defines the interface for Client::Commit()
|
pure virtual |
Defines the interface for Client::ExecuteBatchDml()
|
pure virtual |
Defines the interface for Client::ExecuteDml()
|
pure virtual |
Defines the interface for Client::ExecutePartitionedDml()
Defines the interface for Client::ExecuteQuery()
|
pure virtual |
Defines the interface for Client::PartitionQuery()
|
pure virtual |
Defines the interface for Client::PartitionRead()
|
pure virtual |
Defines the interface for Client::ProfileDml()
|
pure virtual |
Defines the interface for Client::ProfileQuery()
|
pure virtual |
Defines the interface for Client::Read()
|
pure virtual |
Defines the interface for Client::Rollback()