Noizu.Entity.Store.Ecto.EntityProtocol.Behaviour behaviour (NoizuLabs Entities v0.2.0)

Link to this section Summary

Link to this section Callbacks

Link to this callback

as_entity(entity, settings, context, options)

@callback as_entity(
  entity :: any(),
  settings :: Tuple,
  context :: any(),
  options :: any()
) ::
  {:ok, any()} | {:error, details :: any()}
Link to this callback

as_entity(entity, record, settings, context, options)

@callback as_entity(
  entity :: any(),
  record :: any(),
  settings :: Tuple,
  context :: any(),
  options :: any()
) :: {:ok, any()} | {:error, details :: any()}
Link to this callback

as_record(entity, settings, context, options)

@callback as_record(
  entity :: any(),
  settings :: Tuple,
  context :: any(),
  options :: any()
) ::
  {:ok, any()} | {:error, details :: any()}
Link to this callback

delete_record(entity, settings, context, options)

@callback delete_record(
  entity :: any(),
  settings :: Tuple,
  context :: any(),
  options :: any()
) ::
  {:ok, any()} | {:error, details :: any()}
Link to this callback

from_record(entity, settings, context, options)

@callback from_record(
  entity :: any(),
  settings :: Tuple,
  context :: any(),
  options :: any()
) ::
  {:ok, any()} | {:error, details :: any()}
Link to this callback

from_record(entity, record, settings, context, options)

@callback from_record(
  entity :: any(),
  record :: any(),
  settings :: Tuple,
  context :: any(),
  options :: any()
) :: {:ok, any()} | {:error, details :: any()}
Link to this callback

persist(record, type, settings, context, options)

@callback persist(
  record :: any(),
  type :: :create | :update,
  settings :: Tuple,
  context :: any(),
  options :: any()
) :: {:ok, any()} | {:error, details :: any()}

Link to this section Functions

Link to this function

as_entity(entity, settings, context, options)

Link to this function

as_entity(_, record, settings, context, options)

Link to this function

as_record(entity, settings, context, options)

Link to this function

delete_record(entity, arg, context, options)

Link to this function

from_record(record, settings, context, options)

Link to this function

from_record(entity, record, settings, context, options)

Link to this function

persist(record, arg2, arg3, arg4, arg5)