UAInspector.Database behaviour
Basic database module providing minimal functions.
Summary↑
load_database(file) | Parses a yaml database file and returns the contents |
Functions
Specs:
- load_database(String.t) :: any
Parses a yaml database file and returns the contents.
Callbacks
Specs:
- init :: atom | :ets.tid
Initializes (sets up) the database.
Specs:
- list :: list
Returns all database entries as a list.
Specs:
- load(path :: String.t) :: no_return
Loads a database file.
Specs:
- parse_database(entries :: list, type :: String.t) :: :ok
Traverses the database and passes each entry to the storage function.
Specs:
- sources :: list
Returns the database sources.
Specs:
- store_entry(entry :: any, type :: String.t) :: boolean
Stores a database entry.
If necessary a data conversion is made from the raw data passed directly out of the database file and the actual data needed when querying the database.