google_api_datastore v0.4.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 (GoogleApi.Datastore.V1.Model.ReadOnly.t): The transaction should only allow reads. Defaults to nil.
  • readWrite (GoogleApi.Datastore.V1.Model.ReadWrite.t): The transaction should allow both reads and writes. Defaults to nil.

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.