#include <db.h>
Definition at line 26 of file db.h.
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 68 of file db.h.
typedef bool(* CDBEnv::recoverFunc_type) (const std::string &strFile, std::string &out_backup_filename) |
Definition at line 59 of file db.h.
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 56 of file db.h.
void CDBEnv::CheckpointLSN |
( |
const std::string & |
strFile | ) |
|
void CDBEnv::CloseDb |
( |
const std::string & |
strFile | ) |
|
void CDBEnv::EnvShutdown |
( |
| ) |
|
|
private |
void CDBEnv::Flush |
( |
bool |
fShutdown | ) |
|
bool CDBEnv::IsMock |
( |
| ) |
const |
|
inline |
Definition at line 48 of file db.h.
void CDBEnv::MakeMock |
( |
| ) |
|
bool CDBEnv::Open |
( |
const fs::path & |
path | ) |
|
bool CDBEnv::Salvage |
( |
const std::string & |
strFile, |
|
|
bool |
fAggressive, |
|
|
std::vector< KeyValPair > & |
vResult |
|
) |
| |
DbTxn* CDBEnv::TxnBegin |
( |
int |
flags = DB_TXN_WRITE_NOSYNC | ) |
|
|
inline |
Definition at line 78 of file db.h.
Definition at line 38 of file db.h.
Definition at line 39 of file db.h.
Definition at line 29 of file db.h.
Definition at line 30 of file db.h.
std::map<std::string, Db*> CDBEnv::mapDb |
Definition at line 41 of file db.h.
std::map<std::string, int> CDBEnv::mapFileUseCount |
Definition at line 40 of file db.h.
std::string CDBEnv::strPath |
|
private |
Definition at line 33 of file db.h.
The documentation for this class was generated from the following files: