#include <db.h>
Definition at line 33 of file db.h.
◆ KeyValPair
Salvage data from a file that Verify says is bad.
fAggressive sets the DB_AGGRESSIVE flag (see berkeley DB->verify() method documentation). Appends binary key/value pairs to vResult, returns true if successful. NOTE: reads the entire database into memory, so cannot be used for huge databases.
Definition at line 77 of file db.h.
◆ recoverFunc_type
| typedef bool(* BerkeleyEnvironment::recoverFunc_type) (const fs::path &file_path, std::string &out_backup_filename) |
Definition at line 67 of file db.h.
◆ VerifyResult
Verify that database file strFile is OK.
If it is not, call the callback to try to recover. This must be called BEFORE strFile is opened. Returns true if strFile is OK.
| Enumerator |
|---|
| VERIFY_OK | |
| RECOVER_OK | |
| RECOVER_FAIL | |
Definition at line 64 of file db.h.
◆ BerkeleyEnvironment()
| BerkeleyEnvironment::BerkeleyEnvironment |
( |
const fs::path & |
env_directory | ) |
|
|
explicit |
◆ ~BerkeleyEnvironment()
| BerkeleyEnvironment::~BerkeleyEnvironment |
( |
| ) |
|
◆ CheckpointLSN()
| void BerkeleyEnvironment::CheckpointLSN |
( |
const std::string & |
strFile | ) |
|
◆ Close()
| void BerkeleyEnvironment::Close |
( |
| ) |
|
◆ CloseDb()
| void BerkeleyEnvironment::CloseDb |
( |
const std::string & |
strFile | ) |
|
◆ Directory()
| fs::path BerkeleyEnvironment::Directory |
( |
| ) |
const |
|
inline |
Definition at line 56 of file db.h.
◆ Flush()
| void BerkeleyEnvironment::Flush |
( |
bool |
fShutdown | ) |
|
◆ IsInitialized()
| bool BerkeleyEnvironment::IsInitialized |
( |
| ) |
const |
|
inline |
Definition at line 55 of file db.h.
◆ IsMock()
| bool BerkeleyEnvironment::IsMock |
( |
| ) |
const |
|
inline |
Definition at line 54 of file db.h.
◆ MakeMock()
| void BerkeleyEnvironment::MakeMock |
( |
| ) |
|
◆ Open()
| bool BerkeleyEnvironment::Open |
( |
bool |
retry | ) |
|
◆ ReloadDbEnv()
| void BerkeleyEnvironment::ReloadDbEnv |
( |
| ) |
|
◆ Reset()
| void BerkeleyEnvironment::Reset |
( |
| ) |
|
◆ Salvage()
| bool BerkeleyEnvironment::Salvage |
( |
const std::string & |
strFile, |
|
|
bool |
fAggressive, |
|
|
std::vector< KeyValPair > & |
vResult |
|
) |
| |
◆ TxnBegin()
| DbTxn* BerkeleyEnvironment::TxnBegin |
( |
int |
flags = DB_TXN_WRITE_NOSYNC | ) |
|
|
inline |
Definition at line 88 of file db.h.
◆ Verify()
◆ dbenv
| std::unique_ptr<DbEnv> BerkeleyEnvironment::dbenv |
Definition at line 43 of file db.h.
◆ fDbEnvInit
| bool BerkeleyEnvironment::fDbEnvInit |
|
private |
Definition at line 36 of file db.h.
◆ fMockDb
| bool BerkeleyEnvironment::fMockDb |
|
private |
Definition at line 37 of file db.h.
◆ m_db_in_use
| std::condition_variable_any BerkeleyEnvironment::m_db_in_use |
Definition at line 47 of file db.h.
◆ m_fileids
Definition at line 46 of file db.h.
◆ mapDb
| std::map<std::string, Db*> BerkeleyEnvironment::mapDb |
Definition at line 45 of file db.h.
◆ mapFileUseCount
| std::map<std::string, int> BerkeleyEnvironment::mapFileUseCount |
Definition at line 44 of file db.h.
◆ strPath
| std::string BerkeleyEnvironment::strPath |
|
private |
Definition at line 40 of file db.h.
The documentation for this class was generated from the following files: