class Google::Apis::SpannerV1::Transaction

A transaction.

Attributes

id[RW]

`id` may be used to identify the transaction in subsequent Read, ExecuteSql, Commit, or Rollback calls. Single-use read-only transactions do not have IDs, because single-use transactions do not support multiple requests. Corresponds to the JSON property `id` NOTE: Values are automatically base64 encoded/decoded in the client library. @return [String]

read_timestamp[RW]

For snapshot read-only transactions, the read timestamp chosen for the transaction. Not returned by default: see TransactionOptions.ReadOnly. return_read_timestamp. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: `ā€œ2014-10-02T15:01:23.045123456Zā€`. Corresponds to the JSON property `readTimestamp` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/spanner_v1/classes.rb, line 4002
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/spanner_v1/classes.rb, line 4007
def update!(**args)
  @id = args[:id] if args.key?(:id)
  @read_timestamp = args[:read_timestamp] if args.key?(:read_timestamp)
end