View Source GoogleApi.Spanner.V1.Model.TransactionSelector (google_api_spanner v0.39.0)

This message is used to select the transaction in which a Read or ExecuteSql call runs. See TransactionOptions for more information about transactions.

Attributes

  • begin (type: GoogleApi.Spanner.V1.Model.TransactionOptions.t, default: nil) - 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.
  • id (type: String.t, default: nil) - Execute the read or SQL query in a previously-started transaction.
  • singleUse (type: GoogleApi.Spanner.V1.Model.TransactionOptions.t, default: nil) - 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.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Spanner.V1.Model.TransactionSelector{
  begin: GoogleApi.Spanner.V1.Model.TransactionOptions.t() | nil,
  id: String.t() | nil,
  singleUse: GoogleApi.Spanner.V1.Model.TransactionOptions.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.