View Source Ravix.Documents.Store behaviour (ravix v0.0.2)

Macro to define a RavenDB Repository Store

example

Example

`defmodule Ravix.TestRepo do
   use Ravix.Documents.Store
 end`

Link to this section Summary

Link to this section Callbacks

Link to this callback

close_session(session_id)

View Source
@callback close_session(session_id :: binary()) :: :ok | {:error, :not_found}
@callback open_session() :: {:ok, binary()}
@callback start_link(opts :: Keyword.t()) ::
  {:ok, pid()} | {:error, {:already_started, pid()}} | {:error, term()}