Bitcoin Core 28.99.0
P2P Digital Currency
Classes | Namespaces | Functions
dbwrapper.cpp File Reference
#include <dbwrapper.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/strencodings.h>
#include <algorithm>
#include <cassert>
#include <cstdarg>
#include <cstdint>
#include <cstdio>
#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 <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. More...
 
static void SetMaxOpenFiles (leveldb::Options *options)
 
static leveldb::Options GetOptions (size_t nCacheSize)
 
const std::vector< unsigned char > & dbwrapper_private::GetObfuscateKey (const CDBWrapper &w)
 Work around circular dependency, as well as for testing in dbwrapper_tests. More...
 

Function Documentation

◆ CharCast()

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

Definition at line 35 of file dbwrapper.cpp.

Here is the caller graph for this function:

◆ DestroyDB()

bool DestroyDB ( const std::string &  path_str)

Definition at line 37 of file dbwrapper.cpp.

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

◆ GetOptions()

static leveldb::Options GetOptions ( size_t  nCacheSize)
static

Definition at line 137 of file dbwrapper.cpp.

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

◆ HandleError()

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

Handle database error by throwing dbwrapper_error exception.

Definition at line 44 of file dbwrapper.cpp.

Here is the caller graph for this function:

◆ SetMaxOpenFiles()

static void SetMaxOpenFiles ( leveldb::Options *  options)
static

Definition at line 112 of file dbwrapper.cpp.

Here is the caller graph for this function: