Genesis.ETS (genesis v0.7.0)
View SourceThis module provides useful helpers for working with ETS tables.
Summary
Functions
Finds all entries where the value is a map with the given key greater than or equal to the value.
Finds all entries where the value is a map with the given key less than or equal to the value.
Finds all entries where the value is a map with the given key between min and max.
Deletes all entries from the given ETS table.
Deletes the entry with the given key from the table.
Deletes the entire ETS table.
Checks if an entry with the given key exists in the table.
Retrieves all values for a given entry key.
Retrieves the value for an entry with the given key. Returns the default value if the entry does not exist.
Retrieves the value for an entry with the given key. Raises if the entry doesn't exist.
Groups entries in the ETS table by their keys. Returns a stream of tuples containing the key and all values.
Returns all entries in the table as a list of tuples.
Finds all entries where the value is a map matching the given key-value pairs.
Creates a new ETS table with the given name and options. If the table already exists, returns the existing table id.
Inserts or updates an entry in the table.
Streams all entries from the given ETS table.
Updates the value for an entry with the given key using a function. Inserts the default value if the entry doesn't exist.
Updates the value for an entry with the given key using a function. Raises if the entry with the given key doesn't exist.
Functions
Finds all entries where the value is a map with the given key greater than or equal to the value.
Finds all entries where the value is a map with the given key less than or equal to the value.
Finds all entries where the value is a map with the given key between min and max.
Deletes all entries from the given ETS table.
Deletes the entry with the given key from the table.
Deletes the entire ETS table.
Checks if an entry with the given key exists in the table.
Retrieves all values for a given entry key.
Retrieves the value for an entry with the given key. Returns the default value if the entry does not exist.
Retrieves the value for an entry with the given key. Raises if the entry doesn't exist.
Groups entries in the ETS table by their keys. Returns a stream of tuples containing the key and all values.
Returns all entries in the table as a list of tuples.
Finds all entries where the value is a map matching the given key-value pairs.
Creates a new ETS table with the given name and options. If the table already exists, returns the existing table id.
Inserts or updates an entry in the table.
Streams all entries from the given ETS table.
Updates the value for an entry with the given key using a function. Inserts the default value if the entry doesn't exist.
Updates the value for an entry with the given key using a function. Raises if the entry with the given key doesn't exist.