amnesia v0.2.8 Amnesia.Event
This module implements helpers to handle mnesia events.
Link to this section Summary
Functions
Observe the given events with the given function.
Report an event, see mnesia:report_event
.
Subscribe to events of a given category, see mnesia:subscribe
.
Unsubscribe from events of a given category, see mnesia:unsubscribe
.
Link to this section Types
Link to this type
system()
Link to this type
table()
table() :: {:write, tuple(), Amnesia.Access.id()} | {:delete_object, tuple(), Amnesia.Access.id()} | {:delete, {atom(), any()}, Amnesia.Access.id()} | {:write, atom(), tuple(), [tuple()], Amnesia.Access.id()} | {:delete, atom(), any(), [tuple()], Amnesia.Access.id()}
Link to this section Functions
Link to this function
observe(categories, fun)
Observe the given events with the given function.
Report an event, see mnesia:report_event
.
Subscribe to events of a given category, see mnesia:subscribe
.
Unsubscribe from events of a given category, see mnesia:unsubscribe
.