|
Barretenberg
The ZK-SNARK library at the core of Aztec
|
#include <lmdb_database.hpp>
Public Types | |
| using | Ptr = std::unique_ptr< LMDBDatabase > |
| using | SharedPtr = std::shared_ptr< LMDBDatabase > |
Public Member Functions | |
| LMDBDatabase (LMDBEnvironment::SharedPtr env, const LMDBDatabaseCreationTransaction &transaction, const std::string &name, bool integerKeys=false, bool reverseKeys=false, bool duplicateKeysPermitted=false, MDB_cmp_func *cmp=nullptr) | |
| LMDBDatabase (const LMDBDatabase &other)=delete | |
| LMDBDatabase (LMDBDatabase &&other)=delete | |
| LMDBDatabase & | operator= (const LMDBDatabase &other)=delete |
| LMDBDatabase & | operator= (LMDBDatabase &&other)=delete |
| ~LMDBDatabase () | |
| const MDB_dbi & | underlying () const |
| const std::string & | name () const |
| bool | duplicate_keys_permitted () const |
| DBStats | get_stats (LMDBReadTransaction &tx) |
Private Attributes | |
| std::string | dbName |
| bool | duplicateKeysPermitted |
| MDB_dbi | _dbi |
| LMDBEnvironment::SharedPtr | environment |
RAII wrapper atound the opening and closing of an LMDB database Contains a reference to its LMDB environment
Definition at line 13 of file lmdb_database.hpp.
| using bb::lmdblib::LMDBDatabase::Ptr = std::unique_ptr<LMDBDatabase> |
Definition at line 15 of file lmdb_database.hpp.
| using bb::lmdblib::LMDBDatabase::SharedPtr = std::shared_ptr<LMDBDatabase> |
Definition at line 16 of file lmdb_database.hpp.
| bb::lmdblib::LMDBDatabase::LMDBDatabase | ( | LMDBEnvironment::SharedPtr | env, |
| const LMDBDatabaseCreationTransaction & | transaction, | ||
| const std::string & | name, | ||
| bool | integerKeys = false, |
||
| bool | reverseKeys = false, |
||
| bool | duplicateKeysPermitted = false, |
||
| MDB_cmp_func * | cmp = nullptr |
||
| ) |
Definition at line 11 of file lmdb_database.cpp.
|
delete |
|
delete |
| bb::lmdblib::LMDBDatabase::~LMDBDatabase | ( | ) |
Definition at line 38 of file lmdb_database.cpp.
| bool bb::lmdblib::LMDBDatabase::duplicate_keys_permitted | ( | ) | const |
Definition at line 53 of file lmdb_database.cpp.
| DBStats bb::lmdblib::LMDBDatabase::get_stats | ( | LMDBReadTransaction & | tx | ) |
Definition at line 58 of file lmdb_database.cpp.
| const std::string & bb::lmdblib::LMDBDatabase::name | ( | ) | const |
Definition at line 48 of file lmdb_database.cpp.
|
delete |
|
delete |
| const MDB_dbi & bb::lmdblib::LMDBDatabase::underlying | ( | ) | const |
Definition at line 43 of file lmdb_database.cpp.
|
private |
Definition at line 41 of file lmdb_database.hpp.
|
private |
Definition at line 39 of file lmdb_database.hpp.
|
private |
Definition at line 40 of file lmdb_database.hpp.
|
private |
Definition at line 42 of file lmdb_database.hpp.