Markov.Database (markov v3.0.0)
Link to this section Summary
Functions
Alias all the table names in the current scope and require what's needed.
Create the database, it calls .create
on every defined table, raises
in case of error.
Create the database, it calls .create
on every defined table.
Destroy the database, it calls .destroy
on every defined table,
raises in case of error.
Destroy the database, it calls .destroy
on every defined table.
List of atoms of the defined tables in the database.
Wait for the database to be loaded.
Link to this section Functions
Alias all the table names in the current scope and require what's needed.
create!(copying \\ [])
@spec create!(Amnesia.Table.c()) :: [Amnesia.Table.o()]
Create the database, it calls .create
on every defined table, raises
in case of error.
create(copying \\ [])
@spec create(Amnesia.Table.c()) :: [Amnesia.Table.o()]
Create the database, it calls .create
on every defined table.
destroy!()
@spec destroy!() :: [Amnesia.Table.o()]
Destroy the database, it calls .destroy
on every defined table,
raises in case of error.
destroy()
@spec destroy() :: [Amnesia.Table.o()]
Destroy the database, it calls .destroy
on every defined table.
metadata()
@spec metadata() :: Amnesia.Metadata.t()
tables()
@spec tables() :: [atom()]
List of atoms of the defined tables in the database.
wait(timeout \\ :infinity)
Wait for the database to be loaded.