1
0
Fork 0
forked from blue/lmdbal

external transaction methods for storage

This commit is contained in:
Blue 2023-03-28 23:45:35 +03:00
parent f39d44890a
commit e2dbea21d1
Signed by untrusted user: blue
GPG key ID: 9B203B252A63EE38
19 changed files with 273 additions and 58 deletions

View file

@ -35,6 +35,10 @@ public:
value = QByteArray((char*)data.mv_data, data.mv_size);
return QString::fromUtf8(value);
};
void deserialize(const MDB_val& data, QString& result) {
value = QByteArray((char*)data.mv_data, data.mv_size);
result = QString::fromUtf8(value);
}
MDB_val setData(const QString& data) {
value = data.toUtf8();
return getData();