Barretenberg
The ZK-SNARK library at the core of Aztec
|
Functions | |
void | put_value (Key &key, Value &data, const LMDBDatabase &db, bb::lmdblib::LMDBWriteTransaction &tx, bool duplicatesPermitted) |
void | put_value (Key &key, const uint64_t &data, const LMDBDatabase &db, bb::lmdblib::LMDBWriteTransaction &tx, bool duplicatesPermitted) |
void | delete_value (Key &key, const LMDBDatabase &db, bb::lmdblib::LMDBWriteTransaction &tx) |
void | delete_value (Key &key, Value &value, const LMDBDatabase &db, bb::lmdblib::LMDBWriteTransaction &tx) |
bool | get_value (Key &key, Value &data, const LMDBDatabase &db, const bb::lmdblib::LMDBTransaction &tx) |
bool | get_value (Key &key, uint64_t &data, const LMDBDatabase &db, const bb::lmdblib::LMDBTransaction &tx) |
bool | set_at_key (const LMDBCursor &cursor, Key &key) |
bool | set_at_key_gte (const LMDBCursor &cursor, Key &key) |
bool | set_at_start (const LMDBCursor &cursor) |
bool | set_at_end (const LMDBCursor &cursor) |
bool | read_next (const LMDBCursor &cursor, KeyDupValuesVector &keyValues, uint64_t numKeysToRead, MDB_cursor_op op) |
bool | count_until_next (const LMDBCursor &cursor, const Key &targetKey, uint64_t &count, MDB_cursor_op op) |
bool | read_next_dup (const LMDBCursor &cursor, KeyDupValuesVector &keyValues, uint64_t numKeysToRead, MDB_cursor_op op) |
bool | count_until_next_dup (const LMDBCursor &cursor, const Key &targetKey, uint64_t &count, MDB_cursor_op op) |
bool | read_next (const LMDBCursor &cursor, KeyDupValuesVector &keyValues, uint64_t numKeysToRead) |
bool | read_prev (const LMDBCursor &cursor, KeyDupValuesVector &keyValues, uint64_t numKeysToRead) |
bool | read_next_dup (const LMDBCursor &cursor, KeyDupValuesVector &keyValues, uint64_t numKeysToRead) |
bool | read_prev_dup (const LMDBCursor &cursor, KeyDupValuesVector &keyValues, uint64_t numKeysToRead) |
bool | count_until_next (const LMDBCursor &cursor, const Key &key, uint64_t &count) |
bool | count_until_prev (const LMDBCursor &cursor, const Key &key, uint64_t &count) |
bool | count_until_next_dup (const LMDBCursor &cursor, const Key &key, uint64_t &count) |
bool | count_until_prev_dup (const LMDBCursor &cursor, const Key &key, uint64_t &count) |
template<typename TKey , typename TValue , typename TxType > | |
bool | get_value_or_previous (TKey &key, TValue &data, const LMDBDatabase &db, const TxType &tx) |
template<typename TKey , typename TValue , typename TxType > | |
bool | get_value_or_previous (TKey &key, TValue &data, const LMDBDatabase &db, const std::function< bool(const MDB_val &)> &is_valid, const TxType &tx) |
template<typename TKey , typename TxType > | |
bool | get_value_or_greater (TKey &key, Value &data, const LMDBDatabase &db, const TxType &tx) |
template<typename TKey , typename TxType > | |
void | get_all_values_greater_or_equal_key (const TKey &key, ValuesVector &data, const LMDBDatabase &db, const TxType &tx) |
template<typename TKey , typename TxType > | |
void | delete_all_values_greater_or_equal_key (const TKey &key, const LMDBDatabase &db, const TxType &tx) |
template<typename TKey , typename TxType > | |
void | get_all_values_lesser_or_equal_key (const TKey &key, ValuesVector &data, const LMDBDatabase &db, const TxType &tx) |
template<typename TKey , typename TxType > | |
void | delete_all_values_lesser_or_equal_key (const TKey &key, const LMDBDatabase &db, const TxType &tx) |
bool bb::lmdblib::lmdb_queries::count_until_next | ( | const LMDBCursor & | cursor, |
const Key & | key, | ||
uint64_t & | count | ||
) |
Definition at line 295 of file queries.cpp.
bool bb::lmdblib::lmdb_queries::count_until_next | ( | const LMDBCursor & | cursor, |
const Key & | targetKey, | ||
uint64_t & | count, | ||
MDB_cursor_op | op | ||
) |
Definition at line 178 of file queries.cpp.
bool bb::lmdblib::lmdb_queries::count_until_next_dup | ( | const LMDBCursor & | cursor, |
const Key & | key, | ||
uint64_t & | count | ||
) |
Definition at line 305 of file queries.cpp.
bool bb::lmdblib::lmdb_queries::count_until_next_dup | ( | const LMDBCursor & | cursor, |
const Key & | targetKey, | ||
uint64_t & | count, | ||
MDB_cursor_op | op | ||
) |
Definition at line 237 of file queries.cpp.
bool bb::lmdblib::lmdb_queries::count_until_prev | ( | const LMDBCursor & | cursor, |
const Key & | key, | ||
uint64_t & | count | ||
) |
Definition at line 300 of file queries.cpp.
bool bb::lmdblib::lmdb_queries::count_until_prev_dup | ( | const LMDBCursor & | cursor, |
const Key & | key, | ||
uint64_t & | count | ||
) |
Definition at line 310 of file queries.cpp.
void bb::lmdblib::lmdb_queries::delete_all_values_greater_or_equal_key | ( | const TKey & | key, |
const LMDBDatabase & | db, | ||
const TxType & | tx | ||
) |
Definition at line 266 of file queries.hpp.
void bb::lmdblib::lmdb_queries::delete_all_values_lesser_or_equal_key | ( | const TKey & | key, |
const LMDBDatabase & | db, | ||
const TxType & | tx | ||
) |
Definition at line 374 of file queries.hpp.
void bb::lmdblib::lmdb_queries::delete_value | ( | Key & | key, |
const LMDBDatabase & | db, | ||
bb::lmdblib::LMDBWriteTransaction & | tx | ||
) |
Definition at line 59 of file queries.cpp.
void bb::lmdblib::lmdb_queries::delete_value | ( | Key & | key, |
Value & | value, | ||
const LMDBDatabase & | db, | ||
bb::lmdblib::LMDBWriteTransaction & | tx | ||
) |
Definition at line 72 of file queries.cpp.
void bb::lmdblib::lmdb_queries::get_all_values_greater_or_equal_key | ( | const TKey & | key, |
ValuesVector & | data, | ||
const LMDBDatabase & | db, | ||
const TxType & | tx | ||
) |
Definition at line 222 of file queries.hpp.
void bb::lmdblib::lmdb_queries::get_all_values_lesser_or_equal_key | ( | const TKey & | key, |
ValuesVector & | data, | ||
const LMDBDatabase & | db, | ||
const TxType & | tx | ||
) |
Definition at line 312 of file queries.hpp.
bool bb::lmdblib::lmdb_queries::get_value | ( | Key & | key, |
uint64_t & | data, | ||
const LMDBDatabase & | db, | ||
const bb::lmdblib::LMDBTransaction & | tx | ||
) |
Definition at line 102 of file queries.cpp.
bool bb::lmdblib::lmdb_queries::get_value | ( | Key & | key, |
Value & | data, | ||
const LMDBDatabase & | db, | ||
const bb::lmdblib::LMDBTransaction & | tx | ||
) |
Definition at line 88 of file queries.cpp.
bool bb::lmdblib::lmdb_queries::get_value_or_greater | ( | TKey & | key, |
Value & | data, | ||
const LMDBDatabase & | db, | ||
const TxType & | tx | ||
) |
Definition at line 183 of file queries.hpp.
bool bb::lmdblib::lmdb_queries::get_value_or_previous | ( | TKey & | key, |
TValue & | data, | ||
const LMDBDatabase & | db, | ||
const std::function< bool(const MDB_val &)> & | is_valid, | ||
const TxType & | tx | ||
) |
Definition at line 92 of file queries.hpp.
bool bb::lmdblib::lmdb_queries::get_value_or_previous | ( | TKey & | key, |
TValue & | data, | ||
const LMDBDatabase & | db, | ||
const TxType & | tx | ||
) |
Definition at line 20 of file queries.hpp.
void bb::lmdblib::lmdb_queries::put_value | ( | Key & | key, |
const uint64_t & | data, | ||
const LMDBDatabase & | db, | ||
bb::lmdblib::LMDBWriteTransaction & | tx, | ||
bool | duplicatesPermitted | ||
) |
Definition at line 36 of file queries.cpp.
void bb::lmdblib::lmdb_queries::put_value | ( | Key & | key, |
Value & | data, | ||
const LMDBDatabase & | db, | ||
bb::lmdblib::LMDBWriteTransaction & | tx, | ||
bool | duplicatesPermitted | ||
) |
Definition at line 12 of file queries.cpp.
bool bb::lmdblib::lmdb_queries::read_next | ( | const LMDBCursor & | cursor, |
KeyDupValuesVector & | keyValues, | ||
uint64_t | numKeysToRead | ||
) |
Definition at line 277 of file queries.cpp.
bool bb::lmdblib::lmdb_queries::read_next | ( | const LMDBCursor & | cursor, |
KeyDupValuesVector & | keyValues, | ||
uint64_t | numKeysToRead, | ||
MDB_cursor_op | op | ||
) |
Definition at line 155 of file queries.cpp.
bool bb::lmdblib::lmdb_queries::read_next_dup | ( | const LMDBCursor & | cursor, |
KeyDupValuesVector & | keyValues, | ||
uint64_t | numKeysToRead | ||
) |
Definition at line 286 of file queries.cpp.
bool bb::lmdblib::lmdb_queries::read_next_dup | ( | const LMDBCursor & | cursor, |
KeyDupValuesVector & | keyValues, | ||
uint64_t | numKeysToRead, | ||
MDB_cursor_op | op | ||
) |
Definition at line 198 of file queries.cpp.
bool bb::lmdblib::lmdb_queries::read_prev | ( | const LMDBCursor & | cursor, |
KeyDupValuesVector & | keyValues, | ||
uint64_t | numKeysToRead | ||
) |
Definition at line 281 of file queries.cpp.
bool bb::lmdblib::lmdb_queries::read_prev_dup | ( | const LMDBCursor & | cursor, |
KeyDupValuesVector & | keyValues, | ||
uint64_t | numKeysToRead | ||
) |
Definition at line 290 of file queries.cpp.
bool bb::lmdblib::lmdb_queries::set_at_end | ( | const LMDBCursor & | cursor | ) |
Definition at line 147 of file queries.cpp.
bool bb::lmdblib::lmdb_queries::set_at_key | ( | const LMDBCursor & | cursor, |
Key & | key | ||
) |
Definition at line 117 of file queries.cpp.
bool bb::lmdblib::lmdb_queries::set_at_key_gte | ( | const LMDBCursor & | cursor, |
Key & | key | ||
) |
Definition at line 128 of file queries.cpp.
bool bb::lmdblib::lmdb_queries::set_at_start | ( | const LMDBCursor & | cursor | ) |
Definition at line 139 of file queries.cpp.