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

Summary

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

meta_merge(state, value)

View Source
Link to this function

meta_put(state, key, value)

View Source
Link to this function

meta_update(state, key, default, func)

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()}