ledger-core
Public Member Functions | List of all members
ConnectionPool Class Reference
+ Inheritance diagram for ConnectionPool:
+ Collaboration diagram for ConnectionPool:

Public Member Functions

 ConnectionPool (const std::string &connectUrl)
 
std::shared_ptr< api::DatabaseConnectiongetConnection () override
 

Member Function Documentation

◆ getConnection()

std::shared_ptr<api::DatabaseConnection> ConnectionPool::getConnection ( )
inlineoverridevirtual

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

Implements ledger::core::api::DatabaseConnectionPool.


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