Bitcoin Core 28.99.0
P2P Digital Currency
Classes | Namespaces | Functions | Variables
bdb.cpp File Reference
#include <compat/compat.h>
#include <logging.h>
#include <util/fs.h>
#include <util/time.h>
#include <wallet/bdb.h>
#include <wallet/db.h>
#include <sync.h>
#include <util/check.h>
#include <util/fs_helpers.h>
#include <util/strencodings.h>
#include <util/translation.h>
#include <stdint.h>
#include <db_cxx.h>
#include <sys/stat.h>
Include dependency graph for bdb.cpp:

Go to the source code of this file.

Classes

class  wallet::SafeDbt
 RAII class that automatically cleanses its data on destruction. More...
 

Namespaces

namespace  wallet
 

Functions

std::shared_ptr< BerkeleyEnvironment > wallet::GetBerkeleyEnv (const fs::path &env_directory, bool use_shared_memory)
 Get BerkeleyEnvironment given a directory path. More...
 
static Span< const std::byte > wallet::SpanFromDbt (const SafeDbt &dbt)
 
bool wallet::BerkeleyDatabaseSanityCheck ()
 Perform sanity check of runtime BDB version versus linked BDB version. More...
 
std::string wallet::BerkeleyDatabaseVersion ()
 
std::unique_ptr< BerkeleyDatabase > wallet::MakeBerkeleyDatabase (const fs::path &path, const DatabaseOptions &options, DatabaseStatus &status, bilingual_str &error)
 Return object giving access to Berkeley database at specified path. More...
 

Variables

static constexpr auto wallet::REVERSE_BYTE_ORDER {std::endian::native == std::endian::little ? 4321 : 1234}