diff options
author | Roland Reichwein <mail@reichwein.it> | 2023-02-04 12:43:51 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2023-02-04 12:43:51 +0100 |
commit | c4a1f194e79a7834a54fdbf63d73c33e434b4825 (patch) | |
tree | 51eae6c701f38e47790b7200b423de8c89b38465 /storage.h | |
parent | 1771f788a5b9e844f0a5315faee104648e3b7d88 (diff) |
Added stats.html
Diffstat (limited to 'storage.h')
-rw-r--r-- | storage.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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); + |