View Source CMS behaviour (cms v0.1.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

examples

Examples

  • :range