CMakeLists.txt
- added copy_frontend as dependency (else it wont automatically execute request_handler.cpp - implemented db connection - fixed routing of short code All Files - Improved logging
This commit is contained in:
parent
cbfc0b563c
commit
0d89ce5e2d
8 changed files with 251 additions and 89 deletions
|
|
@ -7,7 +7,6 @@
|
|||
#include <memory>
|
||||
#include <vector>
|
||||
#include <soci/soci.h>
|
||||
#include <soci/sqlite3/soci-sqlite3.h>
|
||||
|
||||
class DatabaseService {
|
||||
public:
|
||||
|
|
@ -27,10 +26,10 @@ private:
|
|||
std::string db_path_;
|
||||
std::size_t pool_size_;
|
||||
std::vector<std::shared_ptr<soci::session>> connection_pool_;
|
||||
std::size_t current_index_ = 0; // Index used for round-robin selection
|
||||
std::size_t current_index_ = 0;
|
||||
|
||||
static DatabaseService* INSTANCE;
|
||||
static std::mutex singleton_mutex;
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
Reference in a new issue