ledger-core
|
#include <DatabaseBackend.hpp>
Public Member Functions | |
virtual int32_t | getConnectionPoolSize ()=0 |
virtual std::shared_ptr< DatabaseBackend > | enableQueryLogging (bool enable)=0 |
virtual bool | isLoggingEnabled ()=0 |
Static Public Member Functions | |
static std::shared_ptr< DatabaseBackend > | getSqlite3Backend () |
static std::shared_ptr< DatabaseBackend > | createBackendFromEngine (const std::shared_ptr< DatabaseEngine > &engine) |
Class representing a database backend.
|
static |
Create a database backend instance from the given DatabaseEngine implementation.
|
pure virtual |
Enable or disable query logging. By default logging is disabled. Query logging will record every SQL query in log streams.
Implemented in ledger::core::DatabaseBackend.
|
pure virtual |
Get the maximum number of concurrent connection that the backend is able to open on a single database.
Implemented in ledger::core::ProxyBackend, and ledger::core::SQLite3Backend.
|
static |
Create an instance of SQLite3 database.
|
pure virtual |
Return true if query logging is enabled.
Implemented in ledger::core::DatabaseBackend.