ets v0.5.0 Ets View Source
Ets, an Elixir wrapper for Erlang’s :ets
module.
See Ets.Set
for information on creating and managing Sets, and Ets.Bag
for information on creating and managing Bags.
Link to this section Summary
Link to this section Types
Link to this type
table_identifier()
View Source
table_identifier() :: table_name() | ets_table_reference()
Link to this section Functions
Same as all/1 but unwraps or raises on :error.
Returns list of current :ets tables, each wrapped as either Ets.Set
or Ets.Bag
.
NOTE: Ets.Bag
is not yet implemented. This list returns only :set and :ordered_set tables, both wrapped as Ets.Set
.
Examples
iex> {:ok, all} = Ets.all()
iex> x = length(all)
iex> Ets.Set.new!()
iex> {:ok, all} = Ets.all()
iex> length(all) == x + 1
true