#include <db.h>
Definition at line 28 of file db.h.
◆ KeyValPair
| typedef std::pair<std::vector<unsigned char>, std::vector<unsigned char> > CDBEnv::KeyValPair |
Definition at line 70 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 58 of file db.h.
◆ CDBEnv()
◆ ~CDBEnv()
◆ CheckpointLSN()
| void CDBEnv::CheckpointLSN |
( |
const std::string & |
strFile | ) |
|
◆ Close()
◆ CloseDb()
| void CDBEnv::CloseDb |
( |
const std::string & |
strFile | ) |
|
◆ Compact()
| bool CDBEnv::Compact |
( |
const std::string & |
strFile | ) |
|
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 165 of file db.cpp.
◆ EnvShutdown()
| void CDBEnv::EnvShutdown |
( |
| ) |
|
|
private |
◆ Flush()
| void CDBEnv::Flush |
( |
bool |
fShutdown | ) |
|
◆ IsMock()
Definition at line 50 of file db.h.
◆ MakeMock()
| void CDBEnv::MakeMock |
( |
| ) |
|
◆ Open()
| bool CDBEnv::Open |
( |
const fs::path & |
path | ) |
|
debug
Definition at line 69 of file db.cpp.
◆ RemoveDb()
| bool CDBEnv::RemoveDb |
( |
const std::string & |
strFile | ) |
|
◆ Reset()
◆ Salvage()
| bool CDBEnv::Salvage |
( |
std::string |
strFile, |
|
|
bool |
fAggressive, |
|
|
std::vector< KeyValPair > & |
vResult |
|
) |
| |
◆ TxnBegin()
| DbTxn* CDBEnv::TxnBegin |
( |
int |
flags = DB_TXN_WRITE_NOSYNC | ) |
|
|
inline |
Definition at line 81 of file db.h.
◆ Verify()
◆ cs_db
Definition at line 40 of file db.h.
◆ dbenv
Definition at line 41 of file db.h.
◆ fDbEnvInit
Definition at line 31 of file db.h.
◆ fMockDb
Definition at line 32 of file db.h.
◆ mapDb
| std::map<std::string, Db*> CDBEnv::mapDb |
Definition at line 43 of file db.h.
◆ mapFileUseCount
| std::map<std::string, int> CDBEnv::mapFileUseCount |
Definition at line 42 of file db.h.
◆ strPath
| std::string CDBEnv::strPath |
|
private |
Definition at line 35 of file db.h.
The documentation for this class was generated from the following files: