View Source Rivet.Loader.Tools (rivet v2.0.2)

Link to this section Summary

Link to this section Functions

Link to this function

abort(state, msg, data \\ nil)

View Source
Link to this function

debug(state, msg, opts \\ [])

View Source
Link to this function

did_load(state, type, id, msg \\ nil)

View Source
@spec find_load_file(fname :: binary()) :: {:ok | :error, path :: binary()}
Link to this function

get_previous(state, type)

View Source
Link to this function

get_previous_id(data, key, state)

View Source
Link to this function

get_previous_ids(data, list, state)

View Source
Link to this function

move_keys_if(pass, list)

View Source
Link to this function

next_in_order(item, state, key)

View Source
Link to this function

upsert_record(state, module, data, claims \\ nil, commit \\ &upsert_record_commit/4)

View Source
@spec upsert_record(
  state :: map(),
  collection :: atom(),
  data :: map(),
  claims :: list() | nil,
  commit :: function()
) :: {:ok, record :: map(), state :: map()} | {:error, state :: map()}