Bitcoin
|
#include <db.h>
Classes | |
class | SafeDbt |
Public Member Functions | |
BerkeleyBatch (BerkeleyDatabase &database, const char *pszMode="r+", bool fFlushOnCloseIn=true) | |
~BerkeleyBatch () | |
BerkeleyBatch (const BerkeleyBatch &)=delete | |
BerkeleyBatch & | operator= (const BerkeleyBatch &)=delete |
void | Flush () |
void | Close () |
template<typename K , typename T > | |
bool | Read (const K &key, T &value) |
template<typename K , typename T > | |
bool | Write (const K &key, const T &value, bool fOverwrite=true) |
template<typename K > | |
bool | Erase (const K &key) |
template<typename K > | |
bool | Exists (const K &key) |
Dbc * | GetCursor () |
int | ReadAtCursor (Dbc *pcursor, CDataStream &ssKey, CDataStream &ssValue) |
bool | TxnBegin () |
bool | TxnCommit () |
bool | TxnAbort () |
bool | ReadVersion (int &nVersion) |
bool | WriteVersion (int nVersion) |
Static Public Member Functions | |
static bool | Recover (const fs::path &file_path, void *callbackDataIn, bool(*recoverKVcallback)(void *callbackData, CDataStream ssKey, CDataStream ssValue), std::string &out_backup_filename) |
static bool | PeriodicFlush (BerkeleyDatabase &database) |
static bool | VerifyEnvironment (const fs::path &file_path, std::string &errorStr) |
static bool | VerifyDatabaseFile (const fs::path &file_path, std::string &warningStr, std::string &errorStr, BerkeleyEnvironment::recoverFunc_type recoverFunc) |
static bool | Rewrite (BerkeleyDatabase &database, const char *pszSkip=nullptr) |
Protected Attributes | |
Db * | pdb |
std::string | strFile |
DbTxn * | activeTxn |
bool | fReadOnly |
bool | fFlushOnClose |
BerkeleyEnvironment * | env |
RAII class that provides access to a Berkeley database
|
explicit |
|
inline |
|
delete |
void BerkeleyBatch::Close | ( | ) |
|
inline |
|
inline |
void BerkeleyBatch::Flush | ( | ) |
|
inline |
|
delete |
|
static |
|
inline |
|
inline |
|
inline |
|
static |
|
static |
|
inline |
|
inline |
|
inline |
|
static |
|
static |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |