Sqlite Database service locator (Static class) More...
#include <database.hpp>
Static Public Member Functions | |
static Connection & | get () |
Locate DB. More... | |
static void | init (Connection *db) |
Set DB. More... | |
Sqlite Database service locator (Static class)
|
static |
Locate DB.
std::logic_error | when not initialized |
|
static |
Set DB.
[in] | db | (non-owning) Pointer to DB connection object, or nullptr to de-initialize |