Fabcoin Core
0.16.2
P2P Digital Currency
|
An instance of this class represents one database. More...
#include <db.h>
Public Member Functions | |
CWalletDBWrapper () | |
Create dummy DB handle. More... | |
CWalletDBWrapper (CDBEnv *env_in, const std::string &strFile_in) | |
Create DB handle to real database. More... | |
bool | Rewrite (const char *pszSkip=nullptr) |
Rewrite the entire database on disk, with the exception of key pszSkip if non-zero. More... | |
bool | Backup (const std::string &strDest) |
Back up the entire database to a file. More... | |
std::string | GetName () const |
Get a name for this database, for debugging etc. More... | |
void | Flush (bool shutdown) |
Make sure all changes are flushed to disk. More... | |
void | IncrementUpdateCounter () |
Public Attributes | |
std::atomic< unsigned int > | nUpdateCounter |
unsigned int | nLastSeen |
unsigned int | nLastFlushed |
int64_t | nLastWalletUpdate |
Private Member Functions | |
bool | IsDummy () |
Return whether this database handle is a dummy for testing. More... | |
Private Attributes | |
CDBEnv * | env |
BerkeleyDB specific. More... | |
std::string | strFile |
Friends | |
class | CDB |
An instance of this class represents one database.
For BerkeleyDB this is just a (env, strFile) tuple.
|
inline |
|
inline |
bool CWalletDBWrapper::Backup | ( | const std::string & | strDest | ) |
void CWalletDBWrapper::Flush | ( | bool | shutdown | ) |
|
inline |
|
inlineprivate |
bool CWalletDBWrapper::Rewrite | ( | const char * | pszSkip = nullptr | ) |