DataContext & operator=(const DataContext &)=delete
Disable copy constructor.
DataContext(Config &config, rad::DbAdapter &db_adapter)
This constructor uses the application configuration to initialize the adapter object to the in-memory...
DataContext(const DataContext &)=delete
void UpdateDb()
Try to connect to the DB and update the application configuration.
DbInterface & GetDbInterface()
This class provide access to the application run-time data including the in-memory DB.
void ReloadConfig()
Reload the configuration from file and reconnect to the in-memory DB.