Monero
Loading...
Searching...
No Matches
transaction.h File Reference
#include <lmdb.h>
#include <memory>
#include "lmdb/error.h"
Include dependency graph for transaction.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  lmdb::abort_txn
struct  lmdb::release_read_txn
struct  lmdb::abort_write_txn
struct  lmdb::close_cursor

Namespaces

namespace  lmdb

Macros

#define MONERO_CURSOR(name)
 Uses C++ type system to differentiate between cursors.

Typedefs

using lmdb::suspended_txn = std::unique_ptr<MDB_txn, abort_txn>
using lmdb::read_txn = std::unique_ptr<MDB_txn, release_read_txn>
using lmdb::write_txn = std::unique_ptr<MDB_txn, abort_write_txn>

Functions

template<typename D>
expect< std::unique_ptr< MDB_cursor, D > > lmdb::open_cursor (MDB_txn &txn, MDB_dbi tbl) noexcept

Macro Definition Documentation

◆ MONERO_CURSOR

#define MONERO_CURSOR ( name)
Value:
struct close_ ## name : ::lmdb::close_cursor {}; \
using name = std::unique_ptr< MDB_cursor, close_ ## name >;
const char * name
Definition options.c:30
Definition transaction.h:74

Uses C++ type system to differentiate between cursors.