MySQL 9.4.0
Source Code Documentation
external_table_const.h
Go to the documentation of this file.
1/* Copyright (c) 2025, Oracle and/or its affiliates.
2
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License, version 2.0,
5 as published by the Free Software Foundation.
6
7 This program is designed to work with certain software (including
8 but not limited to OpenSSL) that is licensed under separate terms,
9 as designated in a particular file or component or in included license
10 documentation. The authors of MySQL hereby grant you an additional
11 permission to link the program and your derivative works with the
12 separately licensed software that they have either included with
13 the program or referenced in the documentation.
14
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License, version 2.0, for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23
24#ifndef EXTERNAL_TABLE_CONST_INCLUDED
25#define EXTERNAL_TABLE_CONST_INCLUDED
26
27/**
28 @file
29 Constants used in engine attributes for external tables
30*/
31
32#include <string_view>
33
34namespace external_table {
35using std::string_view_literals::operator""sv;
36
37/* ENGINE_ATTRIBUTE JSON keys*/
38constexpr auto kFileParam = "file"sv;
39constexpr auto kDialectParam = "dialect"sv;
40
41/* ENGINE_ATTRIBUTE file JSON keys*/
42constexpr auto kRegionParam = "region"sv;
43constexpr auto kNamespaceParam = "namespace"sv;
44constexpr auto kBucketParam = "bucket"sv;
45constexpr auto kParParam = "par"sv;
46constexpr auto kNameParam = "name"sv;
47constexpr auto kPrefixParam = "prefix"sv;
48constexpr auto kPatternParam = "pattern"sv;
49
50/* ENGINE_ATTRIBUTE dialect JSON keys*/
51constexpr auto kFormatParam = "format"sv;
52constexpr auto kQuotationMarksParam = "quotation_marks"sv;
53constexpr auto kEscapeCharacterParam = "escape_character"sv;
54constexpr auto kSkipRowsParam = "skip_rows"sv;
55constexpr auto kRecordDelimiterParam = "record_delimiter"sv;
56constexpr auto kFieldDelimiterParam = "field_delimiter"sv;
57constexpr auto kEncodingParam = "encoding"sv;
58constexpr auto kDateFormatParam = "date_format"sv;
59constexpr auto kTimeFormatParam = "time_format"sv;
60constexpr auto kTimestampFormatParam = "timestamp_format"sv;
61constexpr auto kIsStrictModeParam = "is_strict_mode"sv;
62constexpr auto kConstraintCheckParam = "check_constraints"sv;
63constexpr auto kHasHeaderParam = "has_header"sv;
64constexpr auto kAllowMissingParam = "allow_missing_files"sv;
65constexpr auto kNullValueParam = "null_value"sv;
66constexpr auto kEmptyValueParam = "empty_value"sv;
67constexpr auto kCompressionParam = "compression"sv;
68
69/* ENGINE_ATTRIBUTE location parameters*/
70constexpr auto kUriParam = "uri"sv;
71
72/*OCI par info*/
73constexpr auto kParPattern = "https://.*/p/.*/n/.*/b/";
74} // namespace external_table
75
76#endif /* EXTERNAL_TABLE_CONST_INCLUDED */
Definition: external_table_const.h:34
constexpr auto kHasHeaderParam
Definition: external_table_const.h:63
constexpr auto kEncodingParam
Definition: external_table_const.h:57
constexpr auto kSkipRowsParam
Definition: external_table_const.h:54
constexpr auto kRecordDelimiterParam
Definition: external_table_const.h:55
constexpr auto kParPattern
Definition: external_table_const.h:73
constexpr auto kNameParam
Definition: external_table_const.h:46
constexpr auto kBucketParam
Definition: external_table_const.h:44
constexpr auto kEscapeCharacterParam
Definition: external_table_const.h:53
constexpr auto kFileParam
Definition: external_table_const.h:38
constexpr auto kPrefixParam
Definition: external_table_const.h:47
constexpr auto kTimestampFormatParam
Definition: external_table_const.h:60
constexpr auto kNullValueParam
Definition: external_table_const.h:65
constexpr auto kDialectParam
Definition: external_table_const.h:39
constexpr auto kIsStrictModeParam
Definition: external_table_const.h:61
constexpr auto kParParam
Definition: external_table_const.h:45
constexpr auto kDateFormatParam
Definition: external_table_const.h:58
constexpr auto kFieldDelimiterParam
Definition: external_table_const.h:56
constexpr auto kFormatParam
Definition: external_table_const.h:51
constexpr auto kPatternParam
Definition: external_table_const.h:48
constexpr auto kUriParam
Definition: external_table_const.h:70
constexpr auto kQuotationMarksParam
Definition: external_table_const.h:52
constexpr auto kRegionParam
Definition: external_table_const.h:42
constexpr auto kEmptyValueParam
Definition: external_table_const.h:66
constexpr auto kAllowMissingParam
Definition: external_table_const.h:64
constexpr auto kTimeFormatParam
Definition: external_table_const.h:59
constexpr auto kNamespaceParam
Definition: external_table_const.h:43
constexpr auto kConstraintCheckParam
Definition: external_table_const.h:62
constexpr auto kCompressionParam
Definition: external_table_const.h:67