Spear.BatchAppendResult (Spear v0.10.0) View Source
A data structure representing the response to a batch-append request
This structure is sent to the :send_ack_to option when using
Spear.append_batch/5.
Link to this section Summary
Link to this section Types
Specs
t() :: %Spear.BatchAppendResult{
batch_id: String.t(),
position: Spear.Position.t() | :empty | nil,
request_id: reference(),
result:
:ok
| {:error,
%Spear.Grpc.Response{
data: term(),
message: term(),
status: term(),
status_code: term()
}}
| tuple(),
revision: non_neg_integer() | :empty | nil
}
A response to a batch-append request
When the batch-append succeeds, EventStoreDB returns the current revision
and position info in the appended stream. These fields will be nil if
the append does not succeed.