View Source Ravix.Documents.Commands.BatchCommand (ravix v0.2.2)

Raven Command to execute actions in batches

fields

Fields

  • Commands: list of raven commands to be executed

Link to this section Summary

Functions

Parses the response of a batch request

Link to this section Types

@type t() :: %Ravix.Documents.Commands.BatchCommand{
  Commands: [map()],
  data: term(),
  files: term(),
  headers: term(),
  is_raft_request: term(),
  is_read_request: term(),
  method: term(),
  raft_unique_request_id: term(),
  timeout: term(),
  url: term(),
  use_stream: term()
}

Link to this section Functions

Link to this function

parse_batch_response(batch_response, session_state)

View Source
@spec parse_batch_response(map(), Ravix.Documents.Session.State.t()) :: list()

Parses the response of a batch request

parameters

Parameters

  • batch_response: The RavenDB batch response.
  • session_state: The state of the session where the command was executed.