MySQL 9.3.0
Source Code Documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
db_object.h
Go to the documentation of this file.
1/*
2 Copyright (c) 2021, 2025, Oracle and/or its affiliates.
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License, version 2.0,
6 as published by the Free Software Foundation.
7
8 This program is designed to work with certain software (including
9 but not limited to OpenSSL) that is licensed under separate terms,
10 as designated in a particular file or component or in included license
11 documentation. The authors of MySQL hereby grant you an additional
12 permission to link the program and your derivative works with the
13 separately licensed software that they have either included with
14 the program or referenced in the documentation.
15
16 This program is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 GNU General Public License for more details.
20
21 You should have received a copy of the GNU General Public License
22 along with this program; if not, write to the Free Software
23 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
24*/
25
26#ifndef ROUTER_SRC_REST_MRS_SRC_MRS_DATABASE_ENTRY_DB_OBJECT_H_
27#define ROUTER_SRC_REST_MRS_SRC_MRS_DATABASE_ENTRY_DB_OBJECT_H_
28
29#include <memory>
30#include <optional>
31#include <string>
32#include <vector>
33
41
42namespace mrs {
43namespace database {
44namespace entry {
45
48 // kind
49 uint64_t priority;
50 std::string language;
51 std::string class_name;
52 std::string name;
53 std::optional<std::string> options;
54};
55
56struct DbObject {
62 };
63 enum Format : uint32_t { formatFeed = 1, formatItem = 2, formatMedia = 3 };
64
67 std::string name;
68 std::string schema_name;
69 std::string request_path;
74 std::optional<uint64_t> items_per_page;
75 std::optional<std::string> media_type;
78 std::optional<std::string> auth_stored_procedure;
79 std::optional<std::string> options;
80 std::optional<std::string> metadata;
81
82 std::vector<RowGroupOwnership> row_group_security;
84 std::shared_ptr<Object> object_description;
85 std::optional<ContentSetHasObjectDef> content_set_def;
86
87 bool deleted{false};
88};
89
90} // namespace entry
91} // namespace database
92} // namespace mrs
93
94#endif // ROUTER_SRC_REST_MRS_SRC_MRS_DATABASE_ENTRY_DB_OBJECT_H_
EnabledType
Definition: entry.h:56
Definition: authorize_manager.h:48
Definition: completion_hash.h:35
std::string name
Definition: db_object.h:52
std::string language
Definition: db_object.h:50
UniversalId content_set_id
Definition: db_object.h:47
uint64_t priority
Definition: db_object.h:49
std::string class_name
Definition: db_object.h:51
std::optional< std::string > options
Definition: db_object.h:53
Definition: db_object.h:56
std::vector< RowGroupOwnership > row_group_security
Definition: db_object.h:82
Format format
Definition: db_object.h:73
std::optional< std::string > metadata
Definition: db_object.h:80
ObjectType type
Definition: db_object.h:71
std::optional< std::string > options
Definition: db_object.h:79
EnabledType enabled
Definition: db_object.h:70
std::string schema_name
Definition: db_object.h:68
std::optional< ContentSetHasObjectDef > content_set_def
Definition: db_object.h:85
Format
Definition: db_object.h:63
@ formatFeed
Definition: db_object.h:63
@ formatMedia
Definition: db_object.h:63
@ formatItem
Definition: db_object.h:63
std::shared_ptr< Object > object_description
Definition: db_object.h:84
bool deleted
Definition: db_object.h:87
std::string name
Definition: db_object.h:67
std::optional< std::string > media_type
Definition: db_object.h:75
UniversalId id
Definition: db_object.h:65
bool requires_authentication
Definition: db_object.h:77
Operation::ValueType crud_operation
Definition: db_object.h:72
std::optional< std::string > auth_stored_procedure
Definition: db_object.h:78
std::optional< uint64_t > items_per_page
Definition: db_object.h:74
bool autodetect_media_type
Definition: db_object.h:76
UniversalId schema_id
Definition: db_object.h:66
std::string request_path
Definition: db_object.h:69
ObjectType
Definition: db_object.h:57
@ k_objectTypeTable
Definition: db_object.h:58
@ k_objectTypeProcedure
Definition: db_object.h:59
@ k_objectTypeScript
Definition: db_object.h:61
@ k_objectTypeFunction
Definition: db_object.h:60
ResultSets fields
Definition: db_object.h:83
int ValueType
Definition: set_operation.h:34
Definition: field.h:63
Definition: universal_id.h:45