MySQL 9.1.0
Source Code Documentation
files.h
Go to the documentation of this file.
1/* Copyright (c) 2017, 2024, 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 DD_SYSTEM_VIEWS__FILES_INCLUDED
25#define DD_SYSTEM_VIEWS__FILES_INCLUDED
26
29
30namespace dd {
31namespace system_views {
32
33/*
34 The class representing INFORMATION_SCHEMA.FILES system view definition.
35*/
36class Files : public System_view_impl<System_view_select_definition_impl> {
37 public:
41 FIELD_FILE_TYPE, /* ndb/innodb */
52 FIELD_FREE_EXTENTS, /* ndb/innodb */
53 FIELD_TOTAL_EXTENTS, /* ndb/innodb */
54 FIELD_EXTENT_SIZE, /* ndb/innodb */
55 FIELD_INITIAL_SIZE, /* ndb/innodb */
56 FIELD_MAXIMUM_SIZE, /* ndb/innodb */
57 FIELD_AUTOEXTEND_SIZE, /* ndb/innodb */
63 FIELD_VERSION, /* ndb */
70 FIELD_DATA_FREE, /* ndb/innodb */
75 FIELD_STATUS, /* ndb/innodb */
76 FIELD_EXTRA /* no-innodb/ndb*/
77 };
78
79 Files();
80
81 static const Files &instance();
82
83 static const String_type &view_name() {
84 static String_type s_view_name("FILES");
85 return s_view_name;
86 }
87 const String_type &name() const override { return Files::view_name(); }
88};
89
90} // namespace system_views
91} // namespace dd
92
93#endif // DD_SYSTEM_VIEWS__FILES_INCLUDED
Definition: files.h:36
enum_fields
Definition: files.h:38
@ FIELD_LOGFILE_GROUP_NAME
Definition: files.h:46
@ FIELD_CHECKSUM
Definition: files.h:74
@ FIELD_CHECK_TIME
Definition: files.h:73
@ FIELD_ENGINE
Definition: files.h:48
@ FIELD_UPDATE_COUNT
Definition: files.h:51
@ FIELD_TABLE_NAME
Definition: files.h:45
@ FIELD_RECOVER_TIME
Definition: files.h:61
@ FIELD_EXTRA
Definition: files.h:76
@ FIELD_FREE_EXTENTS
Definition: files.h:52
@ FIELD_DATA_FREE
Definition: files.h:70
@ FIELD_LAST_ACCESS_TIME
Definition: files.h:60
@ FIELD_MAXIMUM_SIZE
Definition: files.h:56
@ FIELD_CREATION_TIME
Definition: files.h:58
@ FIELD_EXTENT_SIZE
Definition: files.h:54
@ FIELD_TRANSACTION_COUNTER
Definition: files.h:62
@ FIELD_TABLE_SCHEMA
Definition: files.h:44
@ FIELD_AUTOEXTEND_SIZE
Definition: files.h:57
@ FIELD_FILE_TYPE
Definition: files.h:41
@ FIELD_FILE_NAME
Definition: files.h:40
@ FIELD_TOTAL_EXTENTS
Definition: files.h:53
@ FIELD_DELETED_ROWS
Definition: files.h:50
@ FIELD_TABLE_ROWS
Definition: files.h:65
@ FIELD_UPDATE_TIME
Definition: files.h:72
@ FIELD_VERSION
Definition: files.h:63
@ FIELD_FULLTEXT_KEYS
Definition: files.h:49
@ FIELD_ROW_FORMAT
Definition: files.h:64
@ FIELD_CREATE_TIME
Definition: files.h:71
@ FIELD_INDEX_LENGTH
Definition: files.h:69
@ FIELD_AVG_ROW_LENGTH
Definition: files.h:66
@ FIELD_LOGFILE_GROUP_NUMBER
Definition: files.h:47
@ FIELD_INITIAL_SIZE
Definition: files.h:55
@ FIELD_TABLESPACE_NAME
Definition: files.h:42
@ FIELD_DATA_LENGTH
Definition: files.h:67
@ FIELD_LAST_UPDATE_TIME
Definition: files.h:59
@ FIELD_TABLE_CATALOG
Definition: files.h:43
@ FIELD_STATUS
Definition: files.h:75
@ FIELD_FILE_ID
Definition: files.h:39
@ FIELD_MAX_DATA_LENGTH
Definition: files.h:68
static const Files & instance()
Definition: files.cc:29
const String_type & name() const override
Definition: files.h:87
static const String_type & view_name()
Definition: files.h:83
Files()
Definition: files.cc:34
Definition: system_view_impl.h:33
const dd::String_type s_view_name
Definition: columns_extensions.cc:41
The version of the current data dictionary table definitions.
Definition: dictionary_client.h:43
Char_string_template< String_type_allocator > String_type
Definition: string_type.h:51