ledger-core
Public Member Functions | List of all members
ledger::core::api::DatabaseConnectionPool Class Referenceabstract

#include <DatabaseConnectionPool.hpp>

+ Inheritance diagram for ledger::core::api::DatabaseConnectionPool:

Public Member Functions

virtual std::shared_ptr< DatabaseConnectiongetConnection ()=0
 

Detailed Description

A pool of connections to a single database.

Member Function Documentation

◆ getConnection()

virtual std::shared_ptr<DatabaseConnection> ledger::core::api::DatabaseConnectionPool::getConnection ( )
pure virtual

Get a connection to the database. This method won't be called more than the engine pool size return by DatabaseEngine::getPoolSize.

Returns
A connection to the database

Implemented in ConnectionPool.


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