ledger-core
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
ledger::core::DatabaseSessionPool Class Reference

Public Member Functions

 DatabaseSessionPool (const std::shared_ptr< DatabaseBackend > &backend, const std::shared_ptr< api::PathResolver > &resolver, const std::shared_ptr< spdlog::logger > &logger, const std::string &dbName, const std::string &password)
 
soci::connection_pool & getPool ()
 
void performDatabaseMigration ()
 
void performDatabaseRollback ()
 
void performChangePassword (const std::string &oldPassword, const std::string &newPassword)
 

Static Public Member Functions

static FuturePtr< DatabaseSessionPoolgetSessionPool (const std::shared_ptr< api::ExecutionContext > &context, const std::shared_ptr< DatabaseBackend > &backend, const std::shared_ptr< api::PathResolver > &resolver, const std::shared_ptr< spdlog::logger > &logger, const std::string &dbName, const std::string &password="")
 

Static Public Attributes

static const int CURRENT_DATABASE_SCHEME_VERSION = 17
 

The documentation for this class was generated from the following files: