33 #ifndef _IDENTT_STORE_STORELEVEL_HPP_ 34 #define _IDENTT_STORE_STORELEVEL_HPP_ 38 #ifdef IDENTT_BUILD_WITH_LEVELDB 39 #include <leveldb/db.h> 40 #include <leveldb/write_batch.h> 41 namespace usemydb = ::leveldb;
42 #elif IDENTT_BUILD_WITH_ROCKSDB 43 #include <rocksdb/db.h> 44 namespace usemydb = ::rocksdb;
51 #ifdef IDENTT_BUILD_WITH_LEVELDB 52 using dbpointer=std::shared_ptr<leveldb::DB>;
53 #elif IDENTT_BUILD_WITH_ROCKSDB 54 using dbpointer=std::shared_ptr<rocksdb::DB>;
92 void Initialize(
const std::string datadir,
const size_t cache_in_mb, uint64_t& last_pkey, uint64_t& last_lkey);
Definition: StoreLevel.hpp:49
Definition: StoreBase.hpp:58
Definition: CryptoBase.hpp:49
StoreLevel(dbpointer trydb)
Constructor.
Definition: StoreLevel.cc:58
dbpointer getDB()
getDB: Get shared pointer to DB
Definition: StoreLevel.cc:155
void Initialize(const std::string datadir, const size_t cache_in_mb, uint64_t &last_pkey, uint64_t &last_lkey)
Initialize: init main db.
Definition: StoreLevel.cc:65