Subaru.Store.Mnesia (subaru v0.1.0)

View Source

Mnesia-based storage adapter implementing Subaru.Store.Behaviour. This module wraps low level Mnesia calls so that higher layers can work against the common Behaviour API.

Summary

Functions

Deletes all data and schema from the Mnesia database.

Initializes the Mnesia database schema and tables.

Stops the Mnesia database.

Functions

clear(nodes \\ [node()])

Deletes all data and schema from the Mnesia database.

init(options \\ [])

Initializes the Mnesia database schema and tables.

Options

  • :storage_type - :disc_copies (default), :ram_copies, or :disc_only_copies
  • :nodes - A list of nodes where tables should be replicated (defaults to [node()])

stop()

Stops the Mnesia database.