google_api_datastore v0.1.0 GoogleApi.Datastore.V1.Model.CommitRequest View Source

The request for Datastore.Commit.

Attributes

  • mode (String.t): The type of commit to perform. Defaults to `TRANSACTIONAL`. Defaults to: null.

    • Enum - one of [MODE_UNSPECIFIED, TRANSACTIONAL, NON_TRANSACTIONAL]
  • mutations ([Mutation]): The mutations to perform. When mode is `TRANSACTIONAL`, mutations affecting a single entity are applied in order. The following sequences of mutations affecting a single entity are not permitted in a single `Commit` request: - `insert` followed by `insert` - `update` followed by `insert` - `upsert` followed by `insert` - `delete` followed by `update` When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single entity. Defaults to: null.
  • transaction (binary()): The identifier of the transaction associated with the commit. A transaction identifier is returned by a call to Datastore.BeginTransaction. Defaults to: null.

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.CommitRequest{
  mode: any(),
  mutations: [GoogleApi.Datastore.V1.Model.Mutation.t()],
  transaction: any()
}

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.