summaryrefslogtreecommitdiffstats
path: root/store/database.h
diff options
context:
space:
mode:
Diffstat (limited to 'store/database.h')
-rw-r--r--store/database.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/store/database.h b/store/database.h
index 1a124be..999a89e 100644
--- a/store/database.h
+++ b/store/database.h
@@ -1,3 +1,5 @@
1#pragma once
2
1#include <lmdb.h> 3#include <lmdb.h>
2#include <string> 4#include <string>
3#include <QString> 5#include <QString>
@@ -9,7 +11,8 @@ public:
9 MDB_txn *startTransaction(); 11 MDB_txn *startTransaction();
10 void endTransaction(MDB_txn *transaction); 12 void endTransaction(MDB_txn *transaction);
11 void write(const std::string &sKey, const std::string &sValue, MDB_txn *transaction); 13 void write(const std::string &sKey, const std::string &sValue, MDB_txn *transaction);
12 void read(const std::string &sKey); 14 //Perhaps prefer iterators (assuming we need to be able to match multiple values
15 void read(const std::string &sKey, const std::function<void(const std::string)> &);
13 16
14private: 17private:
15 MDB_env *env; 18 MDB_env *env;