Mercurial > hg > orthanc-databases
comparison Framework/Plugins/StorageBackend.cpp @ 244:02cd7254c949
separating class InputFileValue from FileValue
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 13 Apr 2021 18:43:21 +0200 |
parents | b97a537f4613 |
children | 9d00e5e073e8 |
comparison
equal
deleted
inserted
replaced
243:f5dc59c56e65 | 244:02cd7254c949 |
---|---|
96 DatabaseManager::CachedStatement statement( | 96 DatabaseManager::CachedStatement statement( |
97 STATEMENT_FROM_HERE, manager_, | 97 STATEMENT_FROM_HERE, manager_, |
98 "INSERT INTO StorageArea VALUES (${uuid}, ${content}, ${type})"); | 98 "INSERT INTO StorageArea VALUES (${uuid}, ${content}, ${type})"); |
99 | 99 |
100 statement.SetParameterType("uuid", ValueType_Utf8String); | 100 statement.SetParameterType("uuid", ValueType_Utf8String); |
101 statement.SetParameterType("content", ValueType_File); | 101 statement.SetParameterType("content", ValueType_InputFile); |
102 statement.SetParameterType("type", ValueType_Integer64); | 102 statement.SetParameterType("type", ValueType_Integer64); |
103 | 103 |
104 Dictionary args; | 104 Dictionary args; |
105 args.SetUtf8Value("uuid", uuid); | 105 args.SetUtf8Value("uuid", uuid); |
106 args.SetFileValue("content", content, size); | 106 args.SetFileValue("content", content, size); |