ConvergeLedger.Storage.Schema (Converge Ledger v0.1.2)

View Source

Mnesia schema definitions for the context store.

All table names are centralized here. Never hardcode table names elsewhere.

Summary

Functions

Clears all data from all tables. Use with caution.

Returns the entries table name.

Initializes the Mnesia schema and creates tables.

Returns the Lamport clocks table name.

Returns the sequences table name.

Functions

clear_all()

Clears all data from all tables. Use with caution.

entries_table()

Returns the entries table name.

init()

Initializes the Mnesia schema and creates tables.

Safe to call multiple times (idempotent).

lamport_clocks_table()

Returns the Lamport clocks table name.

sequences_table()

Returns the sequences table name.