summaryrefslogtreecommitdiffhomepage
path: root/storage.h
diff options
context:
space:
mode:
Diffstat (limited to 'storage.h')
-rw-r--r--storage.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/storage.h b/storage.h
index fe8d060..f997657 100644
--- a/storage.h
+++ b/storage.h
@@ -16,6 +16,8 @@ public:
~Storage();
uint64_t getNumberOfDocuments();
+ uint64_t dbsize_gross();
+ uint64_t dbsize_net();
bool exists(const std::string& id);
std::string getDocument(const std::string& id);
@@ -31,7 +33,6 @@ public:
void cleanup();
std::string generate_id();
- uint32_t checksum32(const std::string& s);
private:
SQLite::Database m_db;
@@ -52,5 +53,9 @@ private:
CompiledSQL m_stmt_setRevision;
CompiledSQL m_stmt_setCursorPos;
CompiledSQL m_stmt_setRow;
+ CompiledSQL m_stmt_getDbSizeGross;
+ CompiledSQL m_stmt_getDbSizeNet;
};
+uint32_t checksum32(const std::string& s);
+