Geolix.Database.Loader (Geolix v2.0.0) View Source

Takes care of (re-) loading databases.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Returns state information for a specific database

Returns a list of all completely loaded databases.

Returns a list of all registered databases.

Sets a database's state to :loaded.

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Specs

get_database(atom()) :: map() | nil

Returns state information for a specific database

Specs

loaded_databases() :: [atom()]

Returns a list of all completely loaded databases.

Specs

registered_databases() :: [atom()]

Returns a list of all registered databases.

Registered databases may or may not be already loaded.

Specs

set_loaded(atom()) :: :ok | {:error, atom()}

Sets a database's state to :loaded.