I am having trouble retrieving and deleting records from ETS.
After inserting them like:
:ets.insert(
:table_name,
{id, location, [name, x, z]}
)
I am unable to delete them like so:
:ets.delete(:table_name, id)
I have also tried and this doesn't return anything.
:ets.match(:table_name, {id, location, '_'})
You always can review the content of
:etswith:ets.foldl/3:ets.delete/2works out of the box:For
:ets.match/2one should use atoms (elixir differs from erlang in how to denote them) and specify what to return back.