API Reference Altex.Repo v0.1.1
Modules
The Repo API has a function start_repo/1
to start a repo server.
The start_repo/2
function with the 2nd parameter :drop!
deletes
the entire table before re-opening it. The 2nd version is used mostly in
tests.
Implements a Altex.Repo.Gateway
for :dets
. where all tables are stored
to data/ENV/tablename.ets
. ENV will be replaced with the environment from
MIX_ENV
, which is either :test, :dev, or :prod
Implements the functions open_table/1
, load_table/1
, insert/2
and
drop!/1
of Altex.Repo.Gateway
for ETS. A simple in-memory implementation.
Each "table" has it's own Altex.Repo.Server
started from
Altex.Repo.start_repo/1
through the Altex.Repo.Supervisor
.
The repo will persist or not, based on the used gateway implementation.