diff options
author | Roland Reichwein <mail@reichwein.it> | 2023-02-12 11:54:05 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2023-02-12 11:54:05 +0100 |
commit | b0f8b28977e59b7fbfc1ce57ee5c102b8e4e0690 (patch) | |
tree | 926eb8dbd140d84ab0238ce7d671673056f12f56 /storage.h | |
parent | 7d5ca5cebfe3453aaa3c649bbc3e771e6d636ac9 (diff) |
Touch documents on read (i.e. reset timeout on read)
Diffstat (limited to 'storage.h')
-rw-r--r-- | storage.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -30,6 +30,8 @@ public: void setCursorPos(const std::string& id, int cursorPos); void setRow(const std::string& id, const std::string& document, int rev, int cursorPos); + void touchDocument(const std::string& id); + void cleanup(); std::string generate_id(); @@ -55,6 +57,7 @@ private: CompiledSQL m_stmt_setRow; CompiledSQL m_stmt_getDbSizeGross; CompiledSQL m_stmt_getDbSizeNet; + CompiledSQL m_stmt_touchDocument; }; uint32_t checksum32(const std::string& s); |