Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/bdb.h
Show First 20 Lines • Show All 231 Lines • ▼ Show 20 Lines | protected: | ||||
bool fFlushOnClose; | bool fFlushOnClose; | ||||
BerkeleyEnvironment *env; | BerkeleyEnvironment *env; | ||||
BerkeleyDatabase &m_database; | BerkeleyDatabase &m_database; | ||||
public: | public: | ||||
explicit BerkeleyBatch(BerkeleyDatabase &database, | explicit BerkeleyBatch(BerkeleyDatabase &database, | ||||
const char *pszMode = "r+", | const char *pszMode = "r+", | ||||
bool fFlushOnCloseIn = true); | bool fFlushOnCloseIn = true); | ||||
~BerkeleyBatch() override { Close(); } | ~BerkeleyBatch() override; | ||||
BerkeleyBatch(const BerkeleyBatch &) = delete; | BerkeleyBatch(const BerkeleyBatch &) = delete; | ||||
BerkeleyBatch &operator=(const BerkeleyBatch &) = delete; | BerkeleyBatch &operator=(const BerkeleyBatch &) = delete; | ||||
void Flush() override; | void Flush() override; | ||||
void Close() override; | void Close() override; | ||||
bool StartCursor() override; | bool StartCursor() override; | ||||
Show All 9 Lines |