From c4a1f194e79a7834a54fdbf63d73c33e434b4825 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sat, 4 Feb 2023 12:43:51 +0100 Subject: Added stats.html --- storage.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'storage.h') 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); + -- cgit v1.2.3