#include <db.h>
Definition at line 27 of file db.h.
◆ KeyValPair
typedef std::pair<std::vector<unsigned char>, std::vector<unsigned char> > CDBEnv::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 69 of file db.h.
◆ recoverFunc_type
typedef bool(* CDBEnv::recoverFunc_type) (const std::string &strFile, std::string &out_backup_filename) |
Definition at line 60 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 57 of file db.h.
◆ CDBEnv()
◆ ~CDBEnv()
◆ CheckpointLSN()
void CDBEnv::CheckpointLSN |
( |
const std::string & |
strFile | ) |
|
◆ Close()
◆ CloseDb()
void CDBEnv::CloseDb |
( |
const std::string & |
strFile | ) |
|
◆ EnvShutdown()
void CDBEnv::EnvShutdown |
( |
| ) |
|
|
private |
◆ Flush()
void CDBEnv::Flush |
( |
bool |
fShutdown | ) |
|
◆ IsMock()
bool CDBEnv::IsMock |
( |
| ) |
const |
|
inline |
Definition at line 49 of file db.h.
◆ MakeMock()
void CDBEnv::MakeMock |
( |
| ) |
|
◆ Open()
bool CDBEnv::Open |
( |
const fs::path & |
path | ) |
|
◆ Reset()
◆ Salvage()
bool CDBEnv::Salvage |
( |
const std::string & |
strFile, |
|
|
bool |
fAggressive, |
|
|
std::vector< KeyValPair > & |
vResult |
|
) |
| |
◆ TxnBegin()
DbTxn* CDBEnv::TxnBegin |
( |
int |
flags = DB_TXN_WRITE_NOSYNC | ) |
|
|
inline |
Definition at line 79 of file db.h.
◆ Verify()
◆ cs_db
Definition at line 39 of file db.h.
◆ dbenv
Definition at line 40 of file db.h.
◆ fDbEnvInit
Definition at line 30 of file db.h.
◆ fMockDb
Definition at line 31 of file db.h.
◆ mapDb
std::map<std::string, Db*> CDBEnv::mapDb |
Definition at line 42 of file db.h.
◆ mapFileUseCount
std::map<std::string, int> CDBEnv::mapFileUseCount |
Definition at line 41 of file db.h.
◆ strPath
std::string CDBEnv::strPath |
|
private |
Definition at line 34 of file db.h.
The documentation for this class was generated from the following files: