XEts.delete_object
You're seeing just the function
delete_object
, go back to XEts module for more information.
Link to this function
delete_object(tab, key)
Specs
Delete an object from the table.
Examples
iex> XEts.new(:table) |> XEts.insert(x: 1, y: 2) |> XEts.delete_object({:x, 1}) |> XEts.to_list()
[{:y, 2}]
iex> %{tab: tab} = XEts.new(:table1) |> XEts.insert(x: 1, y: 2)
iex> XEts.delete_object(tab, {:y, 2})
iex> XEts.to_list(tab)
[{:x, 1}]
Link to this function
delete_object(tab, key, meta)
Specs
Delete an object from the table given metadata.
Examples
iex> tab = XEts.new(:table)
iex> XEts.insert(tab, x: 1, y: 2)
iex> meta = :shards_meta.get(tab.tab)
iex> tab |> XEts.delete_object({:x, 1}, meta) |> XEts.to_list()
[{:y, 2}]