Noizu.EntityRepoBehaviour behaviour (NoizuLabs Entities v0.2.1)

Define Entity Repo Crud Behaviour.

Summary

Functions

Implement Entity Repo Behaviour.

Runtime cache sref to handler map.

Callbacks

create(entity, context, options)

@callback create(entity :: any(), context :: any(), options :: any()) ::
  {:ok, any()} | {:error, any()}

delete(entity, context, options)

@callback delete(entity :: any(), context :: any(), options :: any()) ::
  {:ok, any()} | {:error, any()}

update(entity, context, options)

@callback update(entity :: any(), context :: any(), options :: any()) ::
  {:ok, any()} | {:error, any()}

Functions

__using__(options \\ nil)

(macro)

Implement Entity Repo Behaviour.

rebuild_sref_handlers(application, module)

Runtime cache sref to handler map.