Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
bb::lmdblib::LMDBStoreBase Class Referenceabstract

#include <lmdb_store_base.hpp>

Inheritance diagram for bb::lmdblib::LMDBStoreBase:
bb::crypto::merkle_tree::LMDBTreeStore bb::lmdblib::LMDBStore

Public Types

using ReadTransaction = LMDBReadTransaction
 
using WriteTransaction = LMDBWriteTransaction
 
using DBCreationTransaction = LMDBDatabaseCreationTransaction
 

Public Member Functions

 LMDBStoreBase (std::string directory, uint64_t mapSizeKb, uint64_t maxNumReaders, uint64_t maxDbs)
 
 LMDBStoreBase (const LMDBStoreBase &other)=delete
 
LMDBStoreBaseoperator= (const LMDBStoreBase &other)=delete
 
 LMDBStoreBase (LMDBStoreBase &&other) noexcept=default
 
LMDBStoreBaseoperator= (LMDBStoreBase &&other) noexcept=default
 
virtual ~LMDBStoreBase ()=0
 
ReadTransaction::Ptr create_read_transaction () const
 
ReadTransaction::SharedPtr create_shared_read_transaction () const
 
WriteTransaction::Ptr create_write_transaction () const
 
LMDBDatabaseCreationTransaction::Ptr create_db_transaction () const
 
void copy_store (const std::string &dstPath, bool compact)
 

Protected Attributes

std::string _dbDirectory
 
LMDBEnvironment::SharedPtr _environment
 

Detailed Description

Definition at line 9 of file lmdb_store_base.hpp.

Member Typedef Documentation

◆ DBCreationTransaction

◆ ReadTransaction

◆ WriteTransaction

Constructor & Destructor Documentation

◆ LMDBStoreBase() [1/3]

bb::lmdblib::LMDBStoreBase::LMDBStoreBase ( std::string  directory,
uint64_t  mapSizeKb,
uint64_t  maxNumReaders,
uint64_t  maxDbs 
)

Definition at line 4 of file lmdb_store_base.cpp.

◆ LMDBStoreBase() [2/3]

bb::lmdblib::LMDBStoreBase::LMDBStoreBase ( const LMDBStoreBase other)
delete

◆ LMDBStoreBase() [3/3]

bb::lmdblib::LMDBStoreBase::LMDBStoreBase ( LMDBStoreBase &&  other)
defaultnoexcept

◆ ~LMDBStoreBase()

bb::lmdblib::LMDBStoreBase::~LMDBStoreBase ( )
pure virtualdefault

Member Function Documentation

◆ copy_store()

void bb::lmdblib::LMDBStoreBase::copy_store ( const std::string &  dstPath,
bool  compact 
)

Definition at line 33 of file lmdb_store_base.cpp.

◆ create_db_transaction()

LMDBStoreBase::DBCreationTransaction::Ptr bb::lmdblib::LMDBStoreBase::create_db_transaction ( ) const

Definition at line 21 of file lmdb_store_base.cpp.

◆ create_read_transaction()

LMDBStoreBase::ReadTransaction::Ptr bb::lmdblib::LMDBStoreBase::create_read_transaction ( ) const

Definition at line 9 of file lmdb_store_base.cpp.

◆ create_shared_read_transaction()

LMDBStoreBase::ReadTransaction::SharedPtr bb::lmdblib::LMDBStoreBase::create_shared_read_transaction ( ) const

Definition at line 15 of file lmdb_store_base.cpp.

◆ create_write_transaction()

LMDBStoreBase::WriteTransaction::Ptr bb::lmdblib::LMDBStoreBase::create_write_transaction ( ) const

Definition at line 27 of file lmdb_store_base.cpp.

◆ operator=() [1/2]

LMDBStoreBase & bb::lmdblib::LMDBStoreBase::operator= ( const LMDBStoreBase other)
delete

◆ operator=() [2/2]

LMDBStoreBase & bb::lmdblib::LMDBStoreBase::operator= ( LMDBStoreBase &&  other)
defaultnoexcept

Member Data Documentation

◆ _dbDirectory

std::string bb::lmdblib::LMDBStoreBase::_dbDirectory
protected

Definition at line 27 of file lmdb_store_base.hpp.

◆ _environment

LMDBEnvironment::SharedPtr bb::lmdblib::LMDBStoreBase::_environment
protected

Definition at line 28 of file lmdb_store_base.hpp.


The documentation for this class was generated from the following files: