View Source GoogleApi.Datastore.V1.Model.CommitRequest (google_api_datastore v0.25.0)
The request for Datastore.Commit.
Attributes
-
databaseId(type:String.t, default:nil) - The ID of the database against which to make the request. '(default)' is not allowed; please use empty string '' to refer the default database. -
mode(type:String.t, default:nil) - The type of commit to perform. Defaults toTRANSACTIONAL. -
mutations(type:list(GoogleApi.Datastore.V1.Model.Mutation.t), default:nil) - The mutations to perform. When mode isTRANSACTIONAL, mutations affecting a single entity are applied in order. The following sequences of mutations affecting a single entity are not permitted in a singleCommitrequest: -insertfollowed byinsert-updatefollowed byinsert-upsertfollowed byinsert-deletefollowed byupdateWhen mode isNON_TRANSACTIONAL, no two mutations may affect a single entity. -
singleUseTransaction(type:GoogleApi.Datastore.V1.Model.TransactionOptions.t, default:nil) - Options for beginning a new transaction for this request. The transaction is committed when the request completes. If specified, TransactionOptions.mode must be TransactionOptions.ReadWrite. -
transaction(type:String.t, default:nil) - The identifier of the transaction associated with the commit. A transaction identifier is returned by a call to Datastore.BeginTransaction.
Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Types
@type t() :: %GoogleApi.Datastore.V1.Model.CommitRequest{ databaseId: String.t() | nil, mode: String.t() | nil, mutations: [GoogleApi.Datastore.V1.Model.Mutation.t()] | nil, singleUseTransaction: GoogleApi.Datastore.V1.Model.TransactionOptions.t() | nil, transaction: String.t() | nil }
Functions
Unwrap a decoded JSON object into its complex fields.