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

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.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

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
}

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.