Wobserver v0.1.8 Wobserver.Table View Source
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
Link to this function
info(table, include_data \\ false)
View Source
info(table :: atom | integer, 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.
Lists all tables with basic information.
Note: data is not included.
Link to this function
sanitize(table)
View Source
sanitize(table :: atom | integer | String.t) :: atom | integer
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