amnesia v0.2.2
Amnesia.Access
behaviour
This behavior is used to implement a different system while taking advantage of mnesia.
It's used by mnesia itself to implement fragmentation using mnesia_frag
and mnesia:activity
.
Types
lock_item ::
{:table, atom} |
{:global, any, [node]}
Functions
Specs
clear_table(id, any, atom, any) ::
{:atomic, :ok} |
{:aborted, any}
Specs
delete(id, any, atom, atom, lock_kind) ::
:ok |
no_return
Specs
delete_object(id, any, atom, tuple, lock_kind) ::
:ok |
no_return
Specs
first(id, any, atom) :: any
Specs
foldl(id, any, function, any, atom, lock_kind) ::
any |
no_return
Specs
foldr(id, any, function, any, atom, lock_kind) ::
any |
no_return
Specs
index_match_object(id, any, atom, any, atom | integer, lock_kind) ::
[any] |
no_return
Specs
index_read(id, any, atom, any, atom | integer, lock_kind) ::
[tuple] |
no_return
Specs
last(id, any, atom) :: any
Specs
match_object(id, any, atom, any, lock_kind) ::
[tuple] |
no_return
Specs
next(id, any, atom, any) :: any
Specs
prev(id, any, atom, any) :: any
Specs
read(id, any, atom, any, lock_kind) ::
[tuple] |
no_return
Specs
select(id, any, atom, any, integer, lock_kind) :: [any]
Specs
select_cont(id, any, any) ::
:"$end_of_table" |
{[any], any}
Specs
table_info(id, any, atom | {atom, atom}, atom) :: any
Specs
write(id, any, atom, tuple, lock_kind) ::
:ok |
no_return
Callbacks
Specs
all_keys(id, any, atom, lock_kind) ::
[any] |
no_return
Specs
clear_table(id, any, atom, any) ::
{:atomic, :ok} |
{:aborted, any}
Specs
delete(id, any, atom, any, lock_kind) ::
:ok |
no_return
Specs
delete_object(id, any, atom, tuple, lock_kind) ::
:ok |
no_return
Specs
first(id, any, atom) :: any
Specs
foldl(id, any, (tuple, any -> any), any, atom, lock_kind) ::
any |
no_return
Specs
foldr(id, any, (tuple, any -> any), any, atom, lock_kind) ::
any |
no_return
Specs
index_match_object(id, any, atom, any, atom | integer, lock_kind) ::
[any] |
no_return
Specs
index_read(id, any, atom, any, atom | integer, lock_kind) ::
[tuple] |
no_return
Specs
last(id, any, atom) :: any
Specs
match_object(id, any, atom, any, lock_kind) ::
[any] |
no_return
Specs
next(id, any, atom, any) :: any
Specs
prev(id, any, atom, any) :: any
Specs
read(id, any, atom, any, lock_kind) ::
[tuple] |
no_return
Specs
select(id, any, atom, any, integer, lock_kind) :: [any]
Specs
select_cont(id, any, any) ::
:"$end_of_table" |
{[any], any}
Specs
table_info(id, any, atom | {atom, atom}, atom) :: any
Specs
write(id, any, atom, tuple, lock_kind) ::
:ok |
no_return