#include <base.h>
|
| DB (const fs::path &path, size_t n_cache_size, bool f_memory=false, bool f_wipe=false, bool f_obfuscate=false) |
|
bool | ReadBestBlock (CBlockLocator &locator) const |
| Read block locator of the chain that the txindex is in sync with. More...
|
|
bool | WriteBestBlock (const CBlockLocator &locator) |
| Write block locator of the chain that the txindex is in sync with. More...
|
|
| CDBWrapper (const fs::path &path, size_t nCacheSize, bool fMemory=false, bool fWipe=false, bool obfuscate=false) |
|
| ~CDBWrapper () |
|
| CDBWrapper (const CDBWrapper &)=delete |
|
CDBWrapper & | operator= (const CDBWrapper &)=delete |
|
template<typename K , typename V > |
bool | Read (const K &key, V &value) const |
|
template<typename K , typename V > |
bool | Write (const K &key, const V &value, bool fSync=false) |
|
template<typename K > |
bool | Exists (const K &key) const |
|
template<typename K > |
bool | Erase (const K &key, bool fSync=false) |
|
bool | WriteBatch (CDBBatch &batch, bool fSync=false) |
|
size_t | DynamicMemoryUsage () const |
|
bool | Flush () |
|
bool | Sync () |
|
CDBIterator * | NewIterator () |
|
bool | IsEmpty () |
| Return true if the database managed by this class contains no entries. More...
|
|
template<typename K > |
size_t | EstimateSize (const K &key_begin, const K &key_end) const |
|
template<typename K > |
void | CompactRange (const K &key_begin, const K &key_end) const |
| Compact a certain range of keys in the database. More...
|
|
Definition at line 25 of file base.h.
◆ DB()
BaseIndex::DB::DB |
( |
const fs::path & |
path, |
|
|
size_t |
n_cache_size, |
|
|
bool |
f_memory = false , |
|
|
bool |
f_wipe = false , |
|
|
bool |
f_obfuscate = false |
|
) |
| |
◆ ReadBestBlock()
bool BaseIndex::DB::ReadBestBlock |
( |
CBlockLocator & |
locator | ) |
const |
Read block locator of the chain that the txindex is in sync with.
Definition at line 35 of file base.cpp.
◆ WriteBestBlock()
bool BaseIndex::DB::WriteBestBlock |
( |
const CBlockLocator & |
locator | ) |
|
Write block locator of the chain that the txindex is in sync with.
Definition at line 44 of file base.cpp.
The documentation for this class was generated from the following files: