23#ifndef DD__CHECK_CONSTRAINT_IMPL_INCLUDED
24#define DD__CHECK_CONSTRAINT_IMPL_INCLUDED
39class Open_dictionary_tables_ctx;
184 cc2->
name().c_str()) < 0);
Definition: check_constraint_impl.h:49
const String_type & check_clause_utf8() const override
Definition: check_constraint_impl.h:103
const String_type & check_clause() const override
Definition: check_constraint_impl.h:97
Object_id m_schema_id
Definition: check_constraint_impl.h:171
bool m_alter_mode
Definition: check_constraint_impl.h:169
void serialize(Sdi_wcontext *wctx, Sdi_writer *w) const override
Converts *this into json.
Definition: check_constraint_impl.cc:142
void set_name(const String_type &name) override
Definition: check_constraint_impl.h:161
static Check_constraint_impl * restore_item(Table_impl *table)
Definition: check_constraint_impl.h:140
void set_alias_name(const String_type &alias_name) override
Definition: check_constraint_impl.h:127
virtual uint ordinal_position() const
Definition: check_constraint_impl.h:78
bool is_persistent() const override
Is dictionary object persistent in dictionary tables ?
Definition: check_constraint_impl.h:155
const String_type & alias_name() const override
Definition: check_constraint_impl.h:125
const Object_table & object_table() const override
Definition: check_constraint_impl.cc:200
String_type m_alias_name
Definition: check_constraint_impl.h:170
const String_type & name() const override
Definition: check_constraint_impl.h:158
void set_ordinal_position(uint)
Definition: check_constraint_impl.h:76
static void register_tables(Open_dictionary_tables_ctx *otx)
Definition: check_constraint_impl.cc:206
bool is_alter_mode() const override
Definition: check_constraint_impl.h:117
void set_alter_mode(bool alter_mode) override
Definition: check_constraint_impl.h:119
enum_constraint_state constraint_state() const override
Definition: check_constraint_impl.h:85
Entity_object_impl * impl() override
Definition: check_constraint_impl.h:150
String_type m_check_clause
Definition: check_constraint_impl.h:167
bool restore_attributes(const Raw_record &r) override
Definition: check_constraint_impl.cc:106
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:155
bool store(Open_dictionary_tables_ctx *otx) override
Store the DD object into DD table.
Definition: check_constraint_impl.cc:92
const Table & table() const override
Definition: check_constraint_impl.cc:52
bool store_attributes(Raw_record *r) override
Definition: check_constraint_impl.cc:124
bool validate() const override
Definition: check_constraint_impl.cc:58
Table_impl * m_table
Definition: check_constraint_impl.h:174
Object_id id() const override
The unique dictionary object id.
Definition: check_constraint_impl.h:154
String_type m_check_clause_utf8
Definition: check_constraint_impl.h:168
void set_check_clause(const String_type &check_clause) override
Definition: check_constraint_impl.h:99
const Entity_object_impl * impl() const override
Definition: check_constraint_impl.h:151
static Check_constraint_impl * clone(const Check_constraint_impl &other, Table_impl *table)
Definition: check_constraint_impl.h:144
void set_constraint_state(bool is_enabled) override
Definition: check_constraint_impl.h:89
void debug_print(String_type &outb) const override
Definition: check_constraint_impl.cc:167
enum_constraint_state m_constraint_state
Definition: check_constraint_impl.h:166
void set_check_clause_utf8(const String_type &check_clause_utf8) override
Definition: check_constraint_impl.h:107
Definition: check_constraint.h:41
enum_constraint_state
Definition: check_constraint.h:47
@ CS_ENFORCED
Definition: check_constraint.h:47
@ CS_NOT_ENFORCED
Definition: check_constraint.h:47
Definition: entity_object_impl.h:43
void set_name(const String_type &name) override
Definition: entity_object_impl.h:61
Object_id id() const override
The unique dictionary object id.
Definition: entity_object_impl.h:48
const String_type & name() const override
Definition: entity_object_impl.h:59
Entity_object_impl * impl() override
Definition: entity_object_impl.h:67
bool is_persistent() const override
Is dictionary object persistent in dictionary tables ?
Definition: entity_object_impl.h:56
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:71
Auxiliary class for opening dictionary tables.
Definition: transaction_impl.h:75
Definition: raw_record.h:45
Opaque context which keeps reusable resoureces needed during deserialization.
Definition: sdi.cc:230
Opaque context which keeps reusable resources needed during serialization.
Definition: sdi.cc:128
Definition: table_impl.h:67
A better implementation of the UNIX ctype(3) library.
MYSQL_PLUGIN_IMPORT CHARSET_INFO * system_charset_info
Definition: mysqld.cc:1541
#define my_strcasecmp(s, a, b)
Definition: m_ctype.h:709
bool is_enabled()
Check if doublewrite is enabled.
Definition: buf0dblwr.h:387
The version of the current data dictionary table definitions.
Definition: dictionary_client.h:42
RJ_Writer Sdi_writer
Alias for the rapidjson Writer type to use in serialization.
Definition: sdi_fwd.h:63
unsigned long long Object_id
Definition: object_id.h:30
rapidjson::GenericValue< RJ_Encoding, RJ_Allocator > RJ_Value
Definition: sdi_fwd.h:48
Char_string_template< String_type_allocator > String_type
Definition: string_type.h:50
const mysql_service_registry_t * r
Definition: pfs_example_plugin_employee.cc:85
This header provides Rapidjson Type Aliases.
Class used to sort check constraints by name for the same table.
Definition: check_constraint_impl.h:180
bool operator()(const dd::Check_constraint *cc1, const dd::Check_constraint *cc2) const
Definition: check_constraint_impl.h:181
unsigned int uint
Definition: uca9-dump.cc:74