Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/bdb.h
Show First 20 Lines • Show All 113 Lines • ▼ Show 20 Lines | BerkeleyDatabase(std::shared_ptr<BerkeleyEnvironment> envIn, | ||||
auto inserted = | auto inserted = | ||||
this->env->m_databases.emplace(strFile, std::ref(*this)); | this->env->m_databases.emplace(strFile, std::ref(*this)); | ||||
assert(inserted.second); | assert(inserted.second); | ||||
} | } | ||||
~BerkeleyDatabase(); | ~BerkeleyDatabase(); | ||||
/** | /** | ||||
* Open the database if it is not already opened. | |||||
* Dummy function, doesn't do anything right now, but is needed for class | |||||
* abstraction | |||||
*/ | |||||
void Open(const char *mode); | |||||
/** | |||||
* Rewrite the entire database on disk, with the exception of key pszSkip if | * Rewrite the entire database on disk, with the exception of key pszSkip if | ||||
* non-zero | * non-zero | ||||
*/ | */ | ||||
bool Rewrite(const char *pszSkip = nullptr); | bool Rewrite(const char *pszSkip = nullptr); | ||||
/** Indicate the a new database user has began using the database. */ | /** Indicate the a new database user has began using the database. */ | ||||
void AddRef(); | void AddRef(); | ||||
▲ Show 20 Lines • Show All 132 Lines • Show Last 20 Lines |