From cbf1ba38794ab6a323441dcc3b0e5e942f7ab386 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sun, 1 Jan 2023 14:53:05 +0100 Subject: Added CompiledSQL class, Test coverage --- storage.h | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) (limited to 'storage.h') diff --git a/storage.h b/storage.h index 24f2961..09514c3 100644 --- a/storage.h +++ b/storage.h @@ -7,6 +7,7 @@ #include #include "config.h" +#include "compiledsql.h" class Storage { @@ -34,18 +35,18 @@ private: uint64_t m_maxage; // shared_ptr to work around initialization in constructor - std::shared_ptr m_stmt_create; - std::shared_ptr m_stmt_getNumberOfDocuments; - std::shared_ptr m_stmt_cleanup; - std::shared_ptr m_stmt_exists; - std::shared_ptr m_stmt_getDocument; - std::shared_ptr m_stmt_getRevision; - std::shared_ptr m_stmt_getCursorPos; - std::shared_ptr m_stmt_getRow; - std::shared_ptr m_stmt_setDocument; - std::shared_ptr m_stmt_setDocument_new; - std::shared_ptr m_stmt_setRevision; - std::shared_ptr m_stmt_setCursorPos; - std::shared_ptr m_stmt_setRow; + CompiledSQL m_stmt_create; + CompiledSQL m_stmt_getNumberOfDocuments; + CompiledSQL m_stmt_cleanup; + CompiledSQL m_stmt_exists; + CompiledSQL m_stmt_getDocument; + CompiledSQL m_stmt_getRevision; + CompiledSQL m_stmt_getCursorPos; + CompiledSQL m_stmt_getRow; + CompiledSQL m_stmt_setDocument; + CompiledSQL m_stmt_setDocument_new; + CompiledSQL m_stmt_setRevision; + CompiledSQL m_stmt_setCursorPos; + CompiledSQL m_stmt_setRow; }; -- cgit v1.2.3