#include <wallet/bdb.h>
#include <wallet/db.h>
#include <util/strencodings.h>
#include <util/translation.h>
#include <stdint.h>
#include <sys/stat.h>
Go to the source code of this file.
| std::string BerkeleyDatabaseVersion |
( |
| ) |
|
| bool ExistsBerkeleyDatabase |
( |
const fs::path & |
path | ) |
|
Check if Berkeley database exists at specified path.
Definition at line 811 of file bdb.cpp.
| std::shared_ptr<BerkeleyEnvironment> GetWalletEnv |
( |
const fs::path & |
wallet_path, |
|
|
std::string & |
database_filename |
|
) |
| |
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 62 of file bdb.cpp.
| bool IsBDBFile |
( |
const fs::path & |
path | ) |
|
Check format of database file.
Definition at line 843 of file bdb.cpp.
Return object giving access to Berkeley database at specified path.
Definition at line 819 of file bdb.cpp.