Electroneum
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

 lmdb
 

Macros

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

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

◆ ELECTRONEUM_CURSOR

#define ELECTRONEUM_CURSOR (   name)
Value:
struct close_ ## name : ::lmdb::close_cursor {}; \
using name = std::unique_ptr< MDB_cursor, close_ ## name >;
const char * name

Uses C++ type system to differentiate between cursors.

Definition at line 35 of file transaction.h.