Repository navigation
Expand file tree
/
Copy pathSQLDefinitions.h
More file actions
90 lines (79 loc) · 2.41 KB
/
Copy pathSQLDefinitions.h
File metadata and controls
90 lines (79 loc) · 2.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
/*
* SQLDefinitions.h
*
* This file is part of the SQLHandler a C++ library to add relational
* database access to the OPeNDAP Hyrax back-end server.
* Copyright (C) 2010 Carlo Cancellieri <ccancellieri@hotmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301 USA
*
* Created on: 05/giu/2010
* Author: carlo cancellieri
*/
#ifndef SQLDEFINITIONS_H_
#define SQLDEFINITIONS_H_
// DEBUG
#include "SQLResponseNames.h"
#include <BESDebug.h>
/**
* catalog
* SQLModule::initialize
* SQLModule::terminate
*/
#define _SQLH_CATALOG "catalog" // FIXME jhrg 8/23/18
#define _SQLH_STORAGE "sqlstorage"
/**
* SQLCheckPoint
*/
#define _SQLH_CHECK_SEPARATOR ','
#define _SQLH_CHECK_KEY "SQL.CheckPoint"
/**
* SQLInternalError
* SQLInternalFatalError
*
* #define BES_INTERNAL_ERROR 1
* #define BES_INTERNAL_FATAL_ERROR 2
* #define BES_SYNTAX_USER_ERROR 3
* #define BES_FORBIDDEN_ERROR 4
* #define BES_NOT_FOUND_ERROR 5
*/
#define _SQLH_INTERNAL_ERROR 6
#define _SQLH_INTERNAL_FATAL_ERROR 7
#define _SQLH_STACK_REPORT_SIZE 5
/**
* Actions
*/
// DEM/SQLDebugAction
#define _SQLH_DEBUG_PREFIX "Action->DEBUG: "
#define _SQLH_FATAL_PREFIX "Action->FATAL: "
#define _SQLH_EXCEPTION_PREFIX "Action->EXCEPTION: "
// SQLBuildDAS
//@todo: move to BuildDASDefinitions
#define _SQLH_DEFAULT_DAS_NAME "DefaultName"
#define _SQLH_DEFAULT_DAS_TYPE "String"
#define _SQLH_DEFAULT_DAS_VAL "Place-holder for unread variables"
#if 0
// connector
#define _SQLH_ROW_CACHE_SIZE "BES.sql.connector.cache_rows"
/**
* SQLCacheManager
*/
#define _SQLH_CACHE_THRESHOLD "BES.sql.cache_threshold"
#define _SQLH_CACHE_DIR "BES.sql.CacheDir"
#define _SQLH_CACHE_PREFIX "BES.sql.CachePrefix"
#define _SQLH_CACHE_SIZE "BES.sql.CacheSize"
#endif
#endif /* SQLDEFINITIONS_H_ */