Reference documentation and code samples for the Cloud Spanner V1 API class Google::Cloud::Spanner::V1::TransactionSelector.
This message is used to select the transaction in which a Read or ExecuteSql call runs.
See TransactionOptions for more information about transactions.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#begin
def begin() -> ::Google::Cloud::Spanner::V1::TransactionOptions
-
(::Google::Cloud::Spanner::V1::TransactionOptions) — Begin a new transaction and execute this read or SQL query in
it. The transaction ID of the new transaction is returned in
ResultSetMetadata.transaction,
which is a Transaction.
Note: The following fields are mutually exclusive:
begin
,single_use
,id
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#begin=
def begin=(value) -> ::Google::Cloud::Spanner::V1::TransactionOptions
-
value (::Google::Cloud::Spanner::V1::TransactionOptions) — Begin a new transaction and execute this read or SQL query in
it. The transaction ID of the new transaction is returned in
ResultSetMetadata.transaction,
which is a Transaction.
Note: The following fields are mutually exclusive:
begin
,single_use
,id
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::Spanner::V1::TransactionOptions) — Begin a new transaction and execute this read or SQL query in
it. The transaction ID of the new transaction is returned in
ResultSetMetadata.transaction,
which is a Transaction.
Note: The following fields are mutually exclusive:
begin
,single_use
,id
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#id
def id() -> ::String
-
(::String) — Execute the read or SQL query in a previously-started transaction.
Note: The following fields are mutually exclusive:
id
,single_use
,begin
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#id=
def id=(value) -> ::String
-
value (::String) — Execute the read or SQL query in a previously-started transaction.
Note: The following fields are mutually exclusive:
id
,single_use
,begin
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::String) — Execute the read or SQL query in a previously-started transaction.
Note: The following fields are mutually exclusive:
id
,single_use
,begin
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#single_use
def single_use() -> ::Google::Cloud::Spanner::V1::TransactionOptions
-
(::Google::Cloud::Spanner::V1::TransactionOptions) — Execute the read or SQL query in a temporary transaction.
This is the most efficient way to execute a transaction that
consists of a single SQL query.
Note: The following fields are mutually exclusive:
single_use
,id
,begin
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#single_use=
def single_use=(value) -> ::Google::Cloud::Spanner::V1::TransactionOptions
-
value (::Google::Cloud::Spanner::V1::TransactionOptions) — Execute the read or SQL query in a temporary transaction.
This is the most efficient way to execute a transaction that
consists of a single SQL query.
Note: The following fields are mutually exclusive:
single_use
,id
,begin
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::Spanner::V1::TransactionOptions) — Execute the read or SQL query in a temporary transaction.
This is the most efficient way to execute a transaction that
consists of a single SQL query.
Note: The following fields are mutually exclusive:
single_use
,id
,begin
. If a field in that set is populated, all other fields in the set will automatically be cleared.