1 /* Copyright (c) 2014, 2019, Oracle and/or its affiliates. All rights reserved. 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 also distributed 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 included with MySQL. 13 14 This program is distributed in the hope that it will be useful, 15 but WITHOUT ANY WARRANTY; without even the implied warranty of 16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 GNU General Public License, version 2.0, for more details. 18 19 You should have received a copy of the GNU General Public License 20 along with this program; if not, write to the Free Software 21 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ 22 23 #ifndef DD__PERFORMANCE_SCHEMA_INIT_PFS_INCLUDED 24 #define DD__PERFORMANCE_SCHEMA_INIT_PFS_INCLUDED 25 26 class THD; 27 28 namespace dd { 29 class Properties; 30 enum class enum_dd_init_type; 31 } // namespace dd 32 33 namespace dd { 34 namespace performance_schema { 35 36 /** 37 Create the performance schema. 38 39 @param thd Thread context. 40 41 @return Return true upon failure, otherwise false. 42 */ 43 44 bool create_pfs_schema(THD *thd); 45 46 /** 47 Creates performance schema tables in the Data Dictionary. 48 49 @return Return true upon failure, otherwise false. 50 */ 51 52 bool init_pfs_tables(enum_dd_init_type int_type); 53 54 /** 55 Store the property "PS_version" in table's options 56 */ 57 58 void set_PS_version_for_table(dd::Properties *table_options); 59 60 } // namespace performance_schema 61 } // namespace dd 62 63 #endif 64