View Source Ravix.Documents.Session.Manager (ravix v0.6.3)

Functions to manage session changes

Link to this section Summary

Link to this section Functions

Link to this function

delete_document(state, document_id)

View Source
@spec delete_document(Ravix.Documents.Session.State.t(), bitstring()) ::
  {:error, atom()} | {:ok, Ravix.Documents.Session.State.t()}
Link to this function

execute_query(session_state, query, method)

View Source
@spec execute_query(Ravix.Documents.Session.State.t(), Ravix.RQL.Query.t(), any()) ::
  {:error, any()} | {:ok, Ravix.Connection.Response.t()}
Link to this function

load_documents(state, document_ids, includes, opts)

View Source
@spec load_documents(Ravix.Documents.Session.State.t(), list(), any(), any()) ::
  {:error, any()} | {:ok, [{any(), any()}, ...]}
@spec save_changes(Ravix.Documents.Session.State.t()) ::
  {:error, any()} | {:ok, keyword()}
Link to this function

store_entity(state, entity, key, change_vector, opts)

View Source
@spec store_entity(
  Ravix.Documents.Session.State.t(),
  map(),
  any(),
  String.t(),
  keyword()
) ::
  {:error, any()} | {:ok, [...]}
Link to this function

stream_query(session_state, query, binary)

View Source
@spec stream_query(Ravix.Documents.Session.State.t(), Ravix.RQL.Query.t(), any()) ::
  {:error, any()} | {:ok, Enumerable.t()}