Class: Google::Spanner::V1::TransactionSelector
- Inherits:
-
Object
- Object
- Google::Spanner::V1::TransactionSelector
- Defined in:
- lib/google/cloud/spanner/v1/doc/google/spanner/v1/transaction.rb
Overview
This message is used to select the transaction in which a Read or ExecuteSql call runs.
See TransactionOptions for more information about transactions.
Instance Attribute Summary collapse
-
#begin ⇒ Google::Spanner::V1::TransactionOptions
Begin a new transaction and execute this read or SQL query in it.
-
#id ⇒ String
Execute the read or SQL query in a previously-started transaction.
-
#single_use ⇒ Google::Spanner::V1::TransactionOptions
Execute the read or SQL query in a temporary transaction.
Instance Attribute Details
#begin ⇒ Google::Spanner::V1::TransactionOptions
Returns 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.
429 |
# File 'lib/google/cloud/spanner/v1/doc/google/spanner/v1/transaction.rb', line 429 class TransactionSelector; end |
#id ⇒ String
Returns Execute the read or SQL query in a previously-started transaction.
429 |
# File 'lib/google/cloud/spanner/v1/doc/google/spanner/v1/transaction.rb', line 429 class TransactionSelector; end |
#single_use ⇒ Google::Spanner::V1::TransactionOptions
Returns 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.
429 |
# File 'lib/google/cloud/spanner/v1/doc/google/spanner/v1/transaction.rb', line 429 class TransactionSelector; end |