RAII transactions
All checks were successful
Main LMDBAL workfow / Archlinux (push) Successful in 40s

This commit is contained in:
Blue 2023-10-17 18:06:11 -03:00
parent a9aa6b549f
commit de741eda21
Signed by: blue
GPG key ID: 9B203B252A63EE38
22 changed files with 689 additions and 222 deletions

View file

@ -24,6 +24,7 @@
#include "lmdb.h"
#include "base.h"
#include "storage.h"
#include "transaction.h"
namespace LMDBAL {
@ -42,9 +43,9 @@ private:
public:
void open() const;
void open(TransactionID txn) const;
void open(const Transaction& transaction) const;
void renew() const;
void renew(TransactionID txn) const;
void renew(const Transaction& transaction) const;
void close() const;
bool opened() const;