GoogleApi.Datastore.V1.Model.TransactionOptions (google_api_datastore v0.18.1) View Source

Options for beginning a new transaction. Transactions can be created explicitly with calls to Datastore.BeginTransaction or implicitly by setting ReadOptions.new_transaction in read requests.

Attributes

  • readOnly (type: GoogleApi.Datastore.V1.Model.ReadOnly.t, default: nil) - The transaction should only allow reads.
  • readWrite (type: GoogleApi.Datastore.V1.Model.ReadWrite.t, default: nil) - The transaction should allow both reads and writes.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() :: %GoogleApi.Datastore.V1.Model.TransactionOptions{
  readOnly: GoogleApi.Datastore.V1.Model.ReadOnly.t() | nil,
  readWrite: GoogleApi.Datastore.V1.Model.ReadWrite.t() | nil
}

Link to this section Functions

Specs

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

Unwrap a decoded JSON object into its complex fields.