Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
lmdb_database.hpp
Go to the documentation of this file.
1#pragma once
4
5namespace bb::lmdblib {
6
7class LMDBDatabaseCreationTransaction;
8class LMDBReadTransaction;
14 public:
17
19 const LMDBDatabaseCreationTransaction& transaction,
20 const std::string& name,
21 bool integerKeys = false,
22 bool reverseKeys = false,
23 bool duplicateKeysPermitted = false,
24 MDB_cmp_func* cmp = nullptr);
25
26 LMDBDatabase(const LMDBDatabase& other) = delete;
27 LMDBDatabase(LMDBDatabase&& other) = delete;
28 LMDBDatabase& operator=(const LMDBDatabase& other) = delete;
30
32
33 const MDB_dbi& underlying() const;
34 const std::string& name() const;
35 bool duplicate_keys_permitted() const;
37
38 private:
39 std::string dbName;
41 MDB_dbi _dbi;
43};
44} // namespace bb::lmdblib
LMDBEnvironment::SharedPtr environment
const MDB_dbi & underlying() const
DBStats get_stats(LMDBReadTransaction &tx)
std::shared_ptr< LMDBDatabase > SharedPtr
LMDBDatabase & operator=(LMDBDatabase &&other)=delete
LMDBDatabase(const LMDBDatabase &other)=delete
LMDBDatabase(LMDBDatabase &&other)=delete
bool duplicate_keys_permitted() const
const std::string & name() const
std::unique_ptr< LMDBDatabase > Ptr
LMDBDatabase & operator=(const LMDBDatabase &other)=delete
std::shared_ptr< LMDBEnvironment > SharedPtr
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13