Markov.Database (markov v3.0.4)

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

Link to this macro

__using__(opts)

(macro)

Alias all the table names in the current scope and require what's needed.

Link to this function

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.

Link to this function

create(copying \\ [])

@spec create(Amnesia.Table.c()) :: [Amnesia.Table.o()]

Create the database, it calls .create on every defined table.

@spec destroy!() :: [Amnesia.Table.o()]

Destroy the database, it calls .destroy on every defined table, raises in case of error.

@spec destroy() :: [Amnesia.Table.o()]

Destroy the database, it calls .destroy on every defined table.

@spec metadata() :: Amnesia.Metadata.t()
@spec tables() :: [atom()]

List of atoms of the defined tables in the database.

Link to this function

wait(timeout \\ :infinity)

@spec wait(integer() | :infinity) :: :ok | {:timeout, [atom()]} | {:error, atom()}

Wait for the database to be loaded.