Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
dbwrapper.cpp File Reference
#include <dbwrapper.h>
#include <leveldb/cache.h>
#include <leveldb/db.h>
#include <leveldb/env.h>
#include <leveldb/filter_policy.h>
#include <leveldb/helpers/memenv/memenv.h>
#include <leveldb/iterator.h>
#include <leveldb/options.h>
#include <leveldb/slice.h>
#include <leveldb/status.h>
#include <leveldb/write_batch.h>
#include <logging.h>
#include <random.h>
#include <serialize.h>
#include <span.h>
#include <streams.h>
#include <util/fs.h>
#include <util/fs_helpers.h>
#include <util/log.h>
#include <util/obfuscation.h>
#include <util/strencodings.h>
#include <algorithm>
#include <cassert>
#include <cstdarg>
#include <cstdint>
#include <cstdio>
#include <memory>
#include <optional>
#include <utility>
Include dependency graph for dbwrapper.cpp:

Go to the source code of this file.

Classes

class  CBitcoinLevelDBLogger
struct  CDBBatch::WriteBatchImpl
struct  LevelDBContext
struct  CDBIterator::IteratorImpl

Namespaces

namespace  dbwrapper_private
 These should be considered an implementation detail of the specific database.

Functions

static auto CharCast (const std::byte *data)
bool DestroyDB (const std::string &path_str)
static void HandleError (const leveldb::Status &status)
 Handle database error by throwing dbwrapper_error exception.
static void SetMaxOpenFiles (leveldb::Options *options)
static leveldb::Options GetOptions (size_t nCacheSize)
const Obfuscationdbwrapper_private::GetObfuscation (const CDBWrapper &)
 Work around circular dependency, as well as for testing in dbwrapper_tests.

Function Documentation

◆ CharCast()

auto CharCast ( const std::byte * data)
static

Definition at line 37 of file dbwrapper.cpp.

Here is the caller graph for this function:

◆ DestroyDB()

bool DestroyDB ( const std::string & path_str)

Definition at line 39 of file dbwrapper.cpp.

Here is the caller graph for this function:

◆ GetOptions()

leveldb::Options GetOptions ( size_t nCacheSize)
static

Definition at line 139 of file dbwrapper.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HandleError()

void HandleError ( const leveldb::Status & status)
static

Handle database error by throwing dbwrapper_error exception.

Definition at line 46 of file dbwrapper.cpp.

Here is the caller graph for this function:

◆ SetMaxOpenFiles()

void SetMaxOpenFiles ( leveldb::Options * options)
static

Definition at line 114 of file dbwrapper.cpp.

Here is the caller graph for this function: