24#ifndef DD__CHECK_CONSTRAINT_IMPL_INCLUDED
25#define DD__CHECK_CONSTRAINT_IMPL_INCLUDED
41class Open_dictionary_tables_ctx;
186 cc2->
name().c_str()) < 0);
Definition: check_constraint_impl.h:51
const String_type & check_clause_utf8() const override
Definition: check_constraint_impl.h:105
const String_type & check_clause() const override
Definition: check_constraint_impl.h:99
Object_id m_schema_id
Definition: check_constraint_impl.h:173
bool m_alter_mode
Definition: check_constraint_impl.h:171
void serialize(Sdi_wcontext *wctx, Sdi_writer *w) const override
Converts *this into json.
Definition: check_constraint_impl.cc:144
void set_name(const String_type &name) override
Definition: check_constraint_impl.h:163
static Check_constraint_impl * restore_item(Table_impl *table)
Definition: check_constraint_impl.h:142
void set_alias_name(const String_type &alias_name) override
Definition: check_constraint_impl.h:129
virtual uint ordinal_position() const
Definition: check_constraint_impl.h:80
bool is_persistent() const override
Is dictionary object persistent in dictionary tables ?
Definition: check_constraint_impl.h:157
const String_type & alias_name() const override
Definition: check_constraint_impl.h:127
const Object_table & object_table() const override
Definition: check_constraint_impl.cc:202
String_type m_alias_name
Definition: check_constraint_impl.h:172
const String_type & name() const override
Definition: check_constraint_impl.h:160
void set_ordinal_position(uint)
Definition: check_constraint_impl.h:78
static void register_tables(Open_dictionary_tables_ctx *otx)
Definition: check_constraint_impl.cc:208
bool is_alter_mode() const override
Definition: check_constraint_impl.h:119
void set_alter_mode(bool alter_mode) override
Definition: check_constraint_impl.h:121
enum_constraint_state constraint_state() const override
Definition: check_constraint_impl.h:87
Entity_object_impl * impl() override
Definition: check_constraint_impl.h:152
String_type m_check_clause
Definition: check_constraint_impl.h:169
bool restore_attributes(const Raw_record &r) override
Definition: check_constraint_impl.cc:108
bool deserialize(Sdi_rcontext *rctx, const RJ_Value &val) override
Re-establishes the state of *this by reading sdi information from the rapidjson DOM subobject provide...
Definition: check_constraint_impl.cc:157
bool store(Open_dictionary_tables_ctx *otx) override
Store the DD object into DD table.
Definition: check_constraint_impl.cc:94
const Table & table() const override
Definition: check_constraint_impl.cc:54
bool store_attributes(Raw_record *r) override
Definition: check_constraint_impl.cc:126
bool validate() const override
Definition: check_constraint_impl.cc:60
Table_impl * m_table
Definition: check_constraint_impl.h:176
Object_id id() const override
The unique dictionary object id.
Definition: check_constraint_impl.h:156
String_type m_check_clause_utf8
Definition: check_constraint_impl.h:170
void set_check_clause(const String_type &check_clause) override
Definition: check_constraint_impl.h:101
const Entity_object_impl * impl() const override
Definition: check_constraint_impl.h:153
static Check_constraint_impl * clone(const Check_constraint_impl &other, Table_impl *table)
Definition: check_constraint_impl.h:146
void set_constraint_state(bool is_enabled) override
Definition: check_constraint_impl.h:91
void debug_print(String_type &outb) const override
Definition: check_constraint_impl.cc:169
enum_constraint_state m_constraint_state
Definition: check_constraint_impl.h:168
void set_check_clause_utf8(const String_type &check_clause_utf8) override
Definition: check_constraint_impl.h:109
Definition: check_constraint.h:42
enum_constraint_state
Definition: check_constraint.h:48
@ CS_ENFORCED
Definition: check_constraint.h:48
@ CS_NOT_ENFORCED
Definition: check_constraint.h:48
Definition: entity_object_impl.h:44
void set_name(const String_type &name) override
Definition: entity_object_impl.h:62
Object_id id() const override
The unique dictionary object id.
Definition: entity_object_impl.h:49
const String_type & name() const override
Definition: entity_object_impl.h:60
Entity_object_impl * impl() override
Definition: entity_object_impl.h:68
bool is_persistent() const override
Is dictionary object persistent in dictionary tables ?
Definition: entity_object_impl.h:57
virtual const String_type & name() const =0
This class represents all data dictionary table like mysql.tables, mysql.columns and more.
Definition: object_table.h:72
Auxiliary class for opening dictionary tables.
Definition: transaction_impl.h:76
Definition: raw_record.h:46
Opaque context which keeps reusable resoureces needed during deserialization.
Definition: sdi.cc:231
Opaque context which keeps reusable resources needed during serialization.
Definition: sdi.cc:129
Definition: table_impl.h:68
A better implementation of the UNIX ctype(3) library.
int my_strcasecmp(const CHARSET_INFO *cs, const char *s1, const char *s2)
Definition: m_ctype.h:653
MYSQL_PLUGIN_IMPORT CHARSET_INFO * system_charset_info
Definition: mysqld.cc:1542
bool is_enabled()
Check if doublewrite is enabled.
Definition: buf0dblwr.h:390
The version of the current data dictionary table definitions.
Definition: dictionary_client.h:43
RJ_Writer Sdi_writer
Alias for the rapidjson Writer type to use in serialization.
Definition: sdi_fwd.h:64
unsigned long long Object_id
Definition: object_id.h:31
rapidjson::GenericValue< RJ_Encoding, RJ_Allocator > RJ_Value
Definition: sdi_fwd.h:49
Char_string_template< String_type_allocator > String_type
Definition: string_type.h:51
const mysql_service_registry_t * r
Definition: pfs_example_plugin_employee.cc:86
This header provides Rapidjson Type Aliases.
Class used to sort check constraints by name for the same table.
Definition: check_constraint_impl.h:182
bool operator()(const dd::Check_constraint *cc1, const dd::Check_constraint *cc2) const
Definition: check_constraint_impl.h:183