google_api_datastore v0.11.0 GoogleApi.Datastore.V1.Model.TransactionOptions 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

Link to this type

t()

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

Link to this section Functions

Link to this function

decode(value, options)

View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.