annotate Framework/Plugins/GlobalProperties.h @ 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1 /**
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
2 * Orthanc - A Lightweight, RESTful DICOM Store
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
4 * Department, University Hospital of Liege, Belgium
507
54d518dcd74a updated copyright, as Orthanc Team now replaces Osimis
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 459
diff changeset
5 * Copyright (C) 2017-2023 Osimis S.A., Belgium
54d518dcd74a updated copyright, as Orthanc Team now replaces Osimis
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 459
diff changeset
6 * Copyright (C) 2024-2024 Orthanc Team SRL, Belgium
459
ecd0b719cff5 update year to 2024
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 426
diff changeset
7 * Copyright (C) 2021-2024 Sebastien Jodogne, ICTEAM UCLouvain, Belgium
0
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
8 *
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
9 * This program is free software: you can redistribute it and/or
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
10 * modify it under the terms of the GNU Affero General Public License
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
11 * as published by the Free Software Foundation, either version 3 of
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
12 * the License, or (at your option) any later version.
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
13 *
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
14 * This program is distributed in the hope that it will be useful, but
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
15 * WITHOUT ANY WARRANTY; without even the implied warranty of
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
17 * Affero General Public License for more details.
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
18 *
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
19 * You should have received a copy of the GNU Affero General Public License
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
20 * along with this program. If not, see <http://www.gnu.org/licenses/>.
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
21 **/
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
22
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
23
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
24 #pragma once
7cea966b6829 initial commit
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
25
221
73cc85f3d9c1 implementation of the "serverIdentifier" information for global properties
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 193
diff changeset
26 #define MISSING_SERVER_IDENTIFIER ""
73cc85f3d9c1 implementation of the "serverIdentifier" information for global properties
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 193
diff changeset
27
152
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 140
diff changeset
28
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 140
diff changeset
29 namespace Orthanc
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 140
diff changeset
30 {
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 140
diff changeset
31 /**
239
e9ba888f371b fix IndexBackend::SetGlobalProperty(), lighten GlobalProperty enum
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 237
diff changeset
32 * The enum "GlobalProperty" is a subset of the "GlobalProperty_XXX"
e9ba888f371b fix IndexBackend::SetGlobalProperty(), lighten GlobalProperty enum
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 237
diff changeset
33 * values from the Orthanc server that have a special meaning to the
e9ba888f371b fix IndexBackend::SetGlobalProperty(), lighten GlobalProperty enum
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 237
diff changeset
34 * database plugins:
426
d700c8f9fc24 migration to UCLouvain servers
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 389
diff changeset
35 * https://orthanc.uclouvain.be/hg/orthanc/file/default/OrthancServer/Sources/ServerEnumerations.h
239
e9ba888f371b fix IndexBackend::SetGlobalProperty(), lighten GlobalProperty enum
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 237
diff changeset
36 *
e9ba888f371b fix IndexBackend::SetGlobalProperty(), lighten GlobalProperty enum
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 237
diff changeset
37 * WARNING: The values must be the same between the Orthanc core and
e9ba888f371b fix IndexBackend::SetGlobalProperty(), lighten GlobalProperty enum
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 237
diff changeset
38 * this enum!
152
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 140
diff changeset
39 **/
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 140
diff changeset
40
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 140
diff changeset
41 enum GlobalProperty
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 140
diff changeset
42 {
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 140
diff changeset
43 GlobalProperty_DatabaseSchemaVersion = 1, // Unused in the Orthanc core as of Orthanc 0.9.5
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 140
diff changeset
44 GlobalProperty_GetTotalSizeIsFast = 6, // New in Orthanc 1.5.2
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 140
diff changeset
45
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 140
diff changeset
46 // Reserved values for internal use by the database plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 140
diff changeset
47 GlobalProperty_DatabasePatchLevel = 4,
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 140
diff changeset
48 GlobalProperty_DatabaseInternal0 = 10,
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 140
diff changeset
49 GlobalProperty_DatabaseInternal1 = 11,
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 140
diff changeset
50 GlobalProperty_DatabaseInternal2 = 12,
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 140
diff changeset
51 GlobalProperty_DatabaseInternal3 = 13,
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 140
diff changeset
52 GlobalProperty_DatabaseInternal4 = 14,
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 140
diff changeset
53 GlobalProperty_DatabaseInternal5 = 15,
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 140
diff changeset
54 GlobalProperty_DatabaseInternal6 = 16,
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 140
diff changeset
55 GlobalProperty_DatabaseInternal7 = 17,
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 140
diff changeset
56 GlobalProperty_DatabaseInternal8 = 18,
239
e9ba888f371b fix IndexBackend::SetGlobalProperty(), lighten GlobalProperty enum
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 237
diff changeset
57 GlobalProperty_DatabaseInternal9 = 19 // Only used in unit tests
152
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 140
diff changeset
58 };
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 140
diff changeset
59 }