dexts v0.3.1 Dexts
Summary
Functions
Get the number of terms in the given table
Count the number of terms matching the match_spec
Delete the term matching the given pattern or key in the given table, see
ets:select_delete
and ets:delete
Delete the given term from the given table, see ets:delete_object
Get the first key in the given table, see dets:first
Fold the given table from the left, see dets:foldl
Fold the given table from the right, see dets:foldr
Get the keys in the given table
Match terms from the given table with the given pattern, see dets:match
Match terms from the given table with the given pattern and options, see
dets:match
Get the next key in the given table, see dets:next
Synchronize the table to disk, see dets:sync
Select terms in the given table using a match_spec, see dets:select
Write the given term to the given table optionally disabling overwriting,
see dets:insert
and dets:insert_new
Types
table :: term
Functions
Specs
count(table, any) :: non_neg_integer
Count the number of terms matching the match_spec.
Specs
delete(table, any) :: true | integer
Delete the term matching the given pattern or key in the given table, see
ets:select_delete
and ets:delete
.
Specs
delete!(table, term) :: true
Delete the given term from the given table, see ets:delete_object
.
Specs
foldl(table, any, (term, any -> any)) :: any
Fold the given table from the left, see dets:foldl
.
Specs
foldr(table, any, (term, any -> any)) :: any
Fold the given table from the right, see dets:foldr
.
Specs
match(table, any) :: Dexts.Selection.t | nil
Match terms from the given table with the given pattern, see dets:match
.
Specs
match(table, any | integer, Keyword.t | any) ::
Dexts.Selection.t |
nil
Match terms from the given table with the given pattern and options, see
dets:match
.
Options
:whole
when true it returns the whole term.:delete
when true it deletes the matching terms instead of returning them.:limit
the amount of elements to select at a time.
Specs
next(table, any) :: any | nil
Get the next key in the given table, see dets:next
.
Select terms in the given table using a match_spec, see dets:select
.