Rivet.Loader.Tools (rivet v2.5.2)

View Source

Summary

Functions

abort(state, msg, data \\ nil)

create_list(list, mod)

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

defer(state, item)

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

find_load_file(fname)

@spec find_load_file(fname :: binary()) :: {:ok | :error, path :: binary()}

get_previous(state, type)

get_previous_id(data, key, state)

get_previous_ids(data, list, state)

handle_yaml_result(arg)

log(state, msg)

log_state(state, msg)

meta_merge(state, value)

meta_put(state, key, value)

meta_update(state, key, default, func)

modname(module)

move_keys_if(pass, list)

next_in_order(item, state, key)

replace(mod, arg)

reset_order(state, key)

singular(module)

system_exit(how)

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

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