View Source Wobserver.Table (Wobserver NG v1.14.0)
Table (ets) information and listing.
Link to this section Summary
Functions
Creates an overview of table information based on the given table
atom or number.
Lists all tables with basic information.
Sanitizes a table
name and returns either the table id or name.
Link to this section Functions
@spec info(table :: :ets.table(), include_data :: boolean()) :: map()
Creates an overview of table information based on the given table
atom or number.
If include_data
is set to true
, it will also contain the table data.
@spec list() :: [map()]
Lists all tables with basic information.
Note: data is not included.
Sanitizes a table
name and returns either the table id or name.
Example:
iex> Wobserver.Table.sanitize :code
:code
iex> Wobserver.Table.sanitize 1
1
iex> Wobserver.Table.sanitize "code"
:code
iex> Wobserver.Table.sanitize "1"
1