32 #ifndef LEDGER_CORE_DATABASESESSIONPOOL_HPP 33 #define LEDGER_CORE_DATABASESESSIONPOOL_HPP 36 #include <api/ExecutionContext.hpp> 37 #include <async/Future.hpp> 38 #include <database/DatabaseBackend.hpp> 39 #include <debug/LoggerStreamBuffer.h> 46 const std::shared_ptr<api::PathResolver> &resolver,
47 const std::shared_ptr<spdlog::logger> &
logger,
48 const std::string &dbName,
49 const std::string &password);
50 soci::connection_pool& getPool();
54 const std::shared_ptr<api::ExecutionContext> &context,
55 const std::shared_ptr<DatabaseBackend> &backend,
56 const std::shared_ptr<api::PathResolver> &resolver,
57 const std::shared_ptr<spdlog::logger> &logger,
58 const std::string &dbName,
59 const std::string &password =
"" 62 static const int CURRENT_DATABASE_SCHEME_VERSION = 17;
64 void performDatabaseMigration();
65 void performDatabaseRollback();
66 void performChangePassword(
const std::string &oldPassword,
67 const std::string &newPassword);
70 std::shared_ptr<DatabaseBackend> _backend;
71 soci::connection_pool _pool;
72 std::ostream* _logger;
78 #endif //LEDGER_CORE_DATABASESESSIONPOOL_HPP Definition: Deffered.hpp:49
Definition: Account.cpp:8
Definition: DatabaseSessionPool.hpp:43
Definition: LoggerStreamBuffer.h:39
Definition: logger.hpp:44