mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-14 04:57:21 +01:00
23 lines
474 B
C++
23 lines
474 B
C++
#include "database_manager.h"
|
|
|
|
void DatabaseManager::load() {
|
|
//go thourgh settings, and create all the defined db backends
|
|
}
|
|
|
|
DatabaseManager *DatabaseManager::get_singleton() {
|
|
return _instance;
|
|
}
|
|
|
|
DatabaseManager::DatabaseManager() {
|
|
_instance = this;
|
|
}
|
|
|
|
DatabaseManager::~DatabaseManager() {
|
|
_instance = nullptr;
|
|
|
|
for (uint32_t i = 0; i < databases.size(); ++i) {
|
|
delete databases[i];
|
|
}
|
|
}
|
|
|
|
DatabaseManager *DatabaseManager::_instance = nullptr; |