Beethoven.MnesiaTools (Beethoven v0.3.7)
Generic Library to simplify certain Mnesia tasks.
Summary
Types
TableConfig contains the payload needed to create the state table needed by the process.
Functions
Copies a replica of a desired table to local node memory.
Creates table if it does not already exist. Applies indexes on creation. Will
Removes the replica of a desired table from local memory.
Subscribe to changes to a Mnesia table.
Runs a job within a synchronous transaction
Check if a Mnesia table exists in the cluster.
Types
Functions
Copies a replica of a desired table to local node memory.
The table may already exist in memory for the following reasons:
- The table was created for all nodes, and this node was already in the cluster.
- The table was initialized on this node.
- A node with the same name was successfully joined the cluster in the past, and power-cycled.
@spec create_table_ifnot_exist(tableConfig()) :: :ok | :already_exists
Creates table if it does not already exist. Applies indexes on creation. Will
@spec delete_copy(atom()) :: :ok
Removes the replica of a desired table from local memory.
Subscribe to changes to a Mnesia table.
Runs a job within a synchronous transaction
Check if a Mnesia table exists in the cluster.