Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
lmdb_store_base.hpp
Go to the documentation of this file.
1#pragma once
2
7
8namespace bb::lmdblib {
10 public:
14 LMDBStoreBase(std::string directory, uint64_t mapSizeKb, uint64_t maxNumReaders, uint64_t maxDbs);
15 LMDBStoreBase(const LMDBStoreBase& other) = delete;
16 LMDBStoreBase& operator=(const LMDBStoreBase& other) = delete;
17 LMDBStoreBase(LMDBStoreBase&& other) noexcept = default;
18 LMDBStoreBase& operator=(LMDBStoreBase&& other) noexcept = default;
19 virtual ~LMDBStoreBase() = 0;
24 void copy_store(const std::string& dstPath, bool compact);
25
26 protected:
27 std::string _dbDirectory;
29};
30} // namespace bb::lmdblib
std::unique_ptr< LMDBDatabaseCreationTransaction > Ptr
std::shared_ptr< LMDBEnvironment > SharedPtr
std::unique_ptr< LMDBReadTransaction > Ptr
std::shared_ptr< LMDBReadTransaction > SharedPtr
LMDBEnvironment::SharedPtr _environment
void copy_store(const std::string &dstPath, bool compact)
LMDBStoreBase(const LMDBStoreBase &other)=delete
ReadTransaction::SharedPtr create_shared_read_transaction() const
LMDBStoreBase & operator=(const LMDBStoreBase &other)=delete
LMDBStoreBase(LMDBStoreBase &&other) noexcept=default
LMDBDatabaseCreationTransaction::Ptr create_db_transaction() const
LMDBStoreBase & operator=(LMDBStoreBase &&other) noexcept=default
WriteTransaction::Ptr create_write_transaction() const
ReadTransaction::Ptr create_read_transaction() const
std::unique_ptr< LMDBWriteTransaction > Ptr