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

Public Member Functions

std::shared_ptr< ledger::core::api::DatabaseConnectionPoolconnect (const std::string &connectUrl) override
 
int32_t getPoolSize () override
 

Member Function Documentation

◆ connect()

std::shared_ptr< ledger::core::api::DatabaseConnectionPool > MemoryDatabaseProxy::connect ( const std::string &  databaseName)
overridevirtual

Open a connection to a database using the given database name. databaseName The name of the database to open

Returns
A connection pool to the given database

Implements ledger::core::api::DatabaseEngine.

◆ getPoolSize()

int32_t MemoryDatabaseProxy::getPoolSize ( )
overridevirtual

Get the maximum number of concurrent connection on a single database.

Returns
the maximum number of concurrent connection that the engine is able to open on a single database.

Implements ledger::core::api::DatabaseEngine.


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