From 3db27ea82c735feb1e7821cd083201ab5bdbc5be Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Sat, 6 Dec 2014 02:53:17 +0100 Subject: crept back in during post-branch-merge conflict fixing apparently --- store/kyotodatabase.h | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 store/kyotodatabase.h (limited to 'store/kyotodatabase.h') diff --git a/store/kyotodatabase.h b/store/kyotodatabase.h deleted file mode 100644 index e752ff5..0000000 --- a/store/kyotodatabase.h +++ /dev/null @@ -1,28 +0,0 @@ -#pragma once - -#include -#include - -class Database { -public: - enum TransactionType { ReadOnly, ReadWrite }; - - Database(const QString &storageRoot, const QString &name); - ~Database(); - bool isInTransaction() const; - bool startTransaction(TransactionType type = ReadWrite); - bool commitTransaction(); - void abortTransaction(); - bool write(const char *key, size_t keySize, const char *value, size_t valueSize); - bool write(const std::string &sKey, const std::string &sValue); - //Perhaps prefer iterators (assuming we need to be able to match multiple values - void read(const std::string &sKey, const std::function &); - void read(const std::string &sKey, const std::function &); - - qint64 diskUsage() const; - void removeFromDisk() const; -private: - class Private; - Private * const d; -}; - -- cgit v1.2.3