#include <clientversion.h>
#include <common/system.h>
#include <serialize.h>
#include <streams.h>
#include <util/fs.h>
#include <wallet/db.h>
#include <db_cxx.h>
#include <atomic>
#include <condition_variable>
#include <map>
#include <memory>
#include <string>
#include <unordered_map>
#include <vector>
Go to the source code of this file.
◆ BerkeleyDatabaseVersion()
std::string BerkeleyDatabaseVersion |
( |
| ) |
|
◆ ExistsBerkeleyDatabase()
bool ExistsBerkeleyDatabase |
( |
const fs::path & |
path | ) |
|
Check if Berkeley database exists at specified path.
Definition at line 900 of file bdb.cpp.
◆ GetWalletEnv()
Get BerkeleyEnvironment and database filename given a wallet path.
- Parameters
-
[in] | wallet_path | Path to wallet directory. Or (for backwards compatibility only) a path to a berkeley btree data file inside a wallet directory. |
[out] | database_filename | Filename of berkeley btree data file inside the wallet directory. |
- Returns
- A shared pointer to the BerkeleyEnvironment object for the wallet directory, never empty because ~BerkeleyEnvironment erases the weak pointer from the g_dbenvs map.
- Postcondition
- A new BerkeleyEnvironment weak pointer is inserted into g_dbenvs if the directory path key was not already in the map.
Definition at line 83 of file bdb.cpp.
◆ IsBerkeleyBtree()
bool IsBerkeleyBtree |
( |
const fs::path & |
path | ) |
|
◆ MakeBerkeleyDatabase()
Return object giving access to Berkeley database at specified path.
Definition at line 908 of file bdb.cpp.
◆ DEFAULT_WALLET_DBLOGSIZE
const unsigned int DEFAULT_WALLET_DBLOGSIZE = 100 |
|
static |
Definition at line 28 of file bdb.h.
◆ DEFAULT_WALLET_PRIVDB
const bool DEFAULT_WALLET_PRIVDB = true |
|
static |
Definition at line 29 of file bdb.h.