#include <dbwrapper.h>
|  | 
| static const std::string | OBFUSCATION_KEY {"\000obfuscate_key", 14} | 
|  | obfuscation key storage key, null-prefixed to avoid collisions  More... 
 | 
|  | 
Definition at line 178 of file dbwrapper.h.
 
◆ CDBWrapper() [1/2]
      
        
          | CDBWrapper::CDBWrapper | ( | const DBParams & | params | ) |  | 
      
 
 
◆ ~CDBWrapper()
      
        
          | CDBWrapper::~CDBWrapper | ( |  | ) |  | 
      
 
 
◆ CDBWrapper() [2/2]
◆ DBContext()
  
  | 
        
          | auto & CDBWrapper::DBContext | ( |  | ) | const |  | inlineprivate | 
 
 
◆ DynamicMemoryUsage()
      
        
          | size_t CDBWrapper::DynamicMemoryUsage | ( |  | ) | const | 
      
 
 
◆ Erase()
  
  | 
        
          | bool CDBWrapper::Erase | ( | const K & | key, |  
          |  |  | bool | fSync = false |  
          |  | ) |  |  |  | inline | 
 
 
◆ EstimateSize()
  
  | 
        
          | size_t CDBWrapper::EstimateSize | ( | const K & | key_begin, |  
          |  |  | const K & | key_end |  
          |  | ) |  | const |  | inline | 
 
 
◆ EstimateSizeImpl()
  
  | 
        
          | size_t CDBWrapper::EstimateSizeImpl | ( | std::span< const std::byte > | key1, |  
          |  |  | std::span< const std::byte > | key2 |  
          |  | ) |  | const |  | private | 
 
 
◆ Exists()
  
  | 
        
          | bool CDBWrapper::Exists | ( | const K & | key | ) | const |  | inline | 
 
 
◆ ExistsImpl()
  
  | 
        
          | bool CDBWrapper::ExistsImpl | ( | std::span< const std::byte > | key | ) | const |  | private | 
 
 
◆ IsEmpty()
      
        
          | bool CDBWrapper::IsEmpty | ( |  | ) |  | 
      
 
Return true if the database managed by this class contains no entries. 
Definition at line 344 of file dbwrapper.cpp.
 
 
◆ NewIterator()
◆ operator=()
◆ Read()
template<typename 
K , typename V > 
  
  | 
        
          | bool CDBWrapper::Read | ( | const K & | key, |  
          |  |  | V & | value |  
          |  | ) |  | const |  | inline | 
 
 
◆ ReadImpl()
  
  | 
        
          | std::optional< std::string > CDBWrapper::ReadImpl | ( | std::span< const std::byte > | key | ) | const |  | private | 
 
 
◆ StoragePath()
  
  | 
        
          | std::optional< fs::path > CDBWrapper::StoragePath | ( |  | ) |  |  | inline | 
 
- Returns
- filesystem path to the on-disk data. 
Definition at line 241 of file dbwrapper.h.
 
 
◆ Write()
template<typename 
K , typename V > 
  
  | 
        
          | bool CDBWrapper::Write | ( | const K & | key, |  
          |  |  | const V & | value, |  
          |  |  | bool | fSync = false |  
          |  | ) |  |  |  | inline | 
 
 
◆ WriteBatch()
      
        
          | bool CDBWrapper::WriteBatch | ( | CDBBatch & | batch, | 
        
          |  |  | bool | fSync = false | 
        
          |  | ) |  |  | 
      
 
 
◆ dbwrapper_private::GetObfuscation
◆ m_db_context
holds all leveldb-specific fields of this class 
Definition at line 183 of file dbwrapper.h.
 
 
◆ m_is_memory
  
  | 
        
          | bool CDBWrapper::m_is_memory |  | private | 
 
whether or not the database resides in memory 
Definition at line 198 of file dbwrapper.h.
 
 
◆ m_name
  
  | 
        
          | std::string CDBWrapper::m_name |  | private | 
 
 
◆ m_obfuscation
optional XOR-obfuscation of the database 
Definition at line 189 of file dbwrapper.h.
 
 
◆ m_path
path to filesystem storage 
Definition at line 195 of file dbwrapper.h.
 
 
◆ OBFUSCATION_KEY
  
  | 
        
          | const std::string CDBWrapper::OBFUSCATION_KEY {"\000obfuscate_key", 14} |  | inlinestaticprivate | 
 
obfuscation key storage key, null-prefixed to avoid collisions 
Definition at line 192 of file dbwrapper.h.
 
 
The documentation for this class was generated from the following files: