comparison Framework/Common/Dictionary.cpp @ 522:c49136b34891 large-queries tip

use a prepared statement for InsertOrUpdateMetadata
author Alain Mazy <am@orthanc.team>
date Fri, 05 Jul 2024 09:15:54 +0200
parents 54d518dcd74a
children
comparison
equal deleted inserted replaced
521:2ab3d45c0b3c 522:c49136b34891
23 23
24 #include "Dictionary.h" 24 #include "Dictionary.h"
25 25
26 #include "BinaryStringValue.h" 26 #include "BinaryStringValue.h"
27 #include "InputFileValue.h" 27 #include "InputFileValue.h"
28 #include "Integer32Value.h"
28 #include "Integer64Value.h" 29 #include "Integer64Value.h"
29 #include "NullValue.h" 30 #include "NullValue.h"
30 #include "Utf8StringValue.h" 31 #include "Utf8StringValue.h"
31 32
32 #include <Logging.h> 33 #include <Logging.h>
124 int64_t value) 125 int64_t value)
125 { 126 {
126 SetValue(key, new Integer64Value(value)); 127 SetValue(key, new Integer64Value(value));
127 } 128 }
128 129
129 130
131 void Dictionary::SetInteger32Value(const std::string& key,
132 int32_t value)
133 {
134 SetValue(key, new Integer32Value(value));
135 }
136
130 void Dictionary::SetNullValue(const std::string& key) 137 void Dictionary::SetNullValue(const std::string& key)
131 { 138 {
132 SetValue(key, new NullValue); 139 SetValue(key, new NullValue);
133 } 140 }
134 141