Changeset View
Changeset View
Standalone View
Standalone View
src/dbwrapper.h
Show All 36 Lines | |||||
void HandleError(const leveldb::Status &status); | void HandleError(const leveldb::Status &status); | ||||
/** | /** | ||||
* Work around circular dependency, as well as for testing in dbwrapper_tests. | * Work around circular dependency, as well as for testing in dbwrapper_tests. | ||||
* Database obfuscation should be considered an implementation detail of the | * Database obfuscation should be considered an implementation detail of the | ||||
* specific database. | * specific database. | ||||
*/ | */ | ||||
const std::vector<uint8_t> &GetObfuscateKey(const CDBWrapper &w); | const std::vector<uint8_t> &GetObfuscateKey(const CDBWrapper &w); | ||||
}; | }; // namespace dbwrapper_private | ||||
/** Batch of changes queued to be written to a CDBWrapper */ | /** Batch of changes queued to be written to a CDBWrapper */ | ||||
class CDBBatch { | class CDBBatch { | ||||
friend class CDBWrapper; | friend class CDBWrapper; | ||||
private: | private: | ||||
const CDBWrapper &parent; | const CDBWrapper &parent; | ||||
leveldb::WriteBatch batch; | leveldb::WriteBatch batch; | ||||
▲ Show 20 Lines • Show All 263 Lines • Show Last 20 Lines |