View Source CMS behaviour (cms v0.2.0)

Link to this section Summary

Link to this section Callbacks

@callback fetch_by(Keyword.t()) :: {:ok, map()} | {:error, :not_found}
@callback list() :: [map()]
Link to this callback

lookup_key(atom, map)

View Source (optional)
@callback lookup_key(atom(), map()) :: any()
Link to this callback

order_by(atom, list)

View Source (optional)
@callback order_by(atom(), [map()]) :: [any()]
@callback primary_key(map()) :: atom()

Link to this section Functions

Link to this function

list_by(mod, name, opts \\ [])

View Source

TODO docs

options

Options

  • :range

TODO docs

options

Options

  • :update_all_nodes - If true then update will be sent to all Erlang nodes in cluster. The default value is false.