Google Cloud Spanner C++ Client 2.13.0
A C++ Client Library for Google Cloud Spanner
|
Options for "single-use", ReadOnly transactions, where Spanner chooses the read timestamp, subject to user-provided bounds. More...
#include <google/cloud/spanner/transaction.h>
Public Member Functions | |
SingleUseOptions (ReadOnlyOptions opts) | |
SingleUseOptions (Timestamp min_read_timestamp) | |
SingleUseOptions (std::chrono::nanoseconds max_staleness) | |
Options for "single-use", ReadOnly transactions, where Spanner chooses the read timestamp, subject to user-provided bounds.
This allows reading without blocking.
Because selection of the timestamp requires knowledge of which rows will be read, a single-use transaction can only be used with one read. See Client::Read() and Client::ExecuteQuery(). SingleUseOptions cannot be used to construct an application-level Transaction.
google::cloud::spanner::Transaction::SingleUseOptions::SingleUseOptions | ( | ReadOnlyOptions | opts | ) |
|
explicit |
|
explicit |