diff OrthancFramework/Sources/SQLite/StatementId.h @ 5566:8b507b1514eb find-refactoring

cache dynamic SQLite statements (imported from large-queries branch)
author Alain Mazy <am@orthanc.team>
date Tue, 23 Apr 2024 14:37:11 +0200
parents 48b8dae6dc77
children 3f13db27b399
line wrap: on
line diff
--- a/OrthancFramework/Sources/SQLite/StatementId.h	Tue Apr 23 13:07:38 2024 +0200
+++ b/OrthancFramework/Sources/SQLite/StatementId.h	Tue Apr 23 14:37:11 2024 +0200
@@ -54,6 +54,7 @@
     private:
       const char* file_;
       int line_;
+      std::string statement_;
 
       StatementId(); // Forbidden
 
@@ -61,6 +62,10 @@
       StatementId(const char* file,
                   int line);
 
+      StatementId(const char* file,
+                  int line,
+                  const std::string& statement);
+
       bool operator< (const StatementId& other) const;
     };
   }