MySQL 9.1.0
Source Code Documentation
dd::Schema Class Referenceabstract

#include <schema.h>

Inheritance diagram for dd::Schema:
[legend]

Public Types

typedef Schema_impl Impl
 
typedef Schema Cache_partition
 
typedef tables::Schemata DD_table
 
typedef Primary_id_key Id_key
 
typedef Item_name_key Name_key
 
typedef Void_key Aux_key
 

Public Member Functions

virtual bool update_id_key (Id_key *key) const
 
virtual bool update_name_key (Name_key *key) const
 
virtual bool update_aux_key (Aux_key *) const
 
virtual const Propertiesoptions () const =0
 
virtual Propertiesoptions ()=0
 
virtual bool set_options (const String_type &options_raw)=0
 
virtual bool set_options (const Properties &options)=0
 
virtual Object_id default_collation_id () const =0
 
virtual void set_default_collation_id (Object_id default_collation_id)=0
 
virtual bool default_encryption () const =0
 
virtual void set_default_encryption (bool default_encryption)=0
 
virtual bool read_only () const =0
 
virtual void set_read_only (bool state)=0
 
virtual ulonglong created (bool convert_time) const =0
 
virtual void set_created (ulonglong created)=0
 
virtual ulonglong last_altered (bool convert_time) const =0
 
virtual void set_last_altered (ulonglong last_altered)=0
 
virtual const Propertiesse_private_data () const =0
 
virtual Propertiesse_private_data ()=0
 
virtual bool set_se_private_data (const String_type &se_private_data_raw)=0
 
virtual bool set_se_private_data (const Properties &se_private_data)=0
 
virtual Eventcreate_event (THD *thd) const =0
 
virtual Functioncreate_function (THD *thd) const =0
 
virtual Procedurecreate_procedure (THD *thd) const =0
 
virtual Tablecreate_table (THD *thd) const =0
 
virtual Viewcreate_view (THD *thd) const =0
 
virtual Viewcreate_system_view (THD *thd) const =0
 
virtual Schemaclone () const =0
 Allocate a new object and invoke the copy constructor. More...
 
virtual Schemaclone_dropped_object_placeholder () const =0
 Allocate a new object which can serve as a placeholder for the original object in the Dictionary_client's dropped registry. More...
 
- Public Member Functions inherited from dd::Entity_object
virtual Object_id id () const =0
 The unique dictionary object id. More...
 
virtual bool is_persistent () const =0
 Is dictionary object persistent in dictionary tables ? More...
 
virtual const String_typename () const =0
 
virtual void set_name (const String_type &name)=0
 
- Public Member Functions inherited from dd::Weak_object
virtual void debug_print (String_type &outb) const =0
 
 Weak_object ()=default
 
 Weak_object (const Weak_object &)=default
 
virtual ~Weak_object ()=default
 

Static Public Member Functions

static bool update_id_key (Id_key *key, Object_id id)
 
static bool update_name_key (Name_key *key, const String_type &name)
 

Member Typedef Documentation

◆ Aux_key

◆ Cache_partition

◆ DD_table

◆ Id_key

◆ Impl

◆ Name_key

Member Function Documentation

◆ clone()

virtual Schema * dd::Schema::clone ( ) const
pure virtual

Allocate a new object and invoke the copy constructor.

Returns
pointer to dynamically allocated copy

Implemented in dd::Schema_impl.

◆ clone_dropped_object_placeholder()

virtual Schema * dd::Schema::clone_dropped_object_placeholder ( ) const
pure virtual

Allocate a new object which can serve as a placeholder for the original object in the Dictionary_client's dropped registry.

Such object has the same keys as the original but has no other info and as result occupies less memory.

Implemented in dd::Schema_impl.

◆ create_event()

virtual Event * dd::Schema::create_event ( THD thd) const
pure virtual

Implemented in dd::Schema_impl.

◆ create_function()

virtual Function * dd::Schema::create_function ( THD thd) const
pure virtual

Implemented in dd::Schema_impl.

◆ create_procedure()

virtual Procedure * dd::Schema::create_procedure ( THD thd) const
pure virtual

Implemented in dd::Schema_impl.

◆ create_system_view()

virtual View * dd::Schema::create_system_view ( THD thd) const
pure virtual

Implemented in dd::Schema_impl.

◆ create_table()

virtual Table * dd::Schema::create_table ( THD thd) const
pure virtual

Implemented in dd::Schema_impl.

◆ create_view()

virtual View * dd::Schema::create_view ( THD thd) const
pure virtual

Implemented in dd::Schema_impl.

◆ created()

virtual ulonglong dd::Schema::created ( bool  convert_time) const
pure virtual

Implemented in dd::Schema_impl.

◆ default_collation_id()

virtual Object_id dd::Schema::default_collation_id ( ) const
pure virtual

Implemented in dd::Schema_impl.

◆ default_encryption()

virtual bool dd::Schema::default_encryption ( ) const
pure virtual

Implemented in dd::Schema_impl.

◆ last_altered()

virtual ulonglong dd::Schema::last_altered ( bool  convert_time) const
pure virtual

Implemented in dd::Schema_impl.

◆ options() [1/2]

virtual const Properties & dd::Schema::options ( ) const
pure virtual

Implemented in dd::Schema_impl.

◆ options() [2/2]

virtual Properties & dd::Schema::options ( )
pure virtual

Implemented in dd::Schema_impl.

◆ read_only()

virtual bool dd::Schema::read_only ( ) const
pure virtual

Implemented in dd::Schema_impl.

◆ se_private_data() [1/2]

virtual const Properties & dd::Schema::se_private_data ( ) const
pure virtual

Implemented in dd::Schema_impl.

◆ se_private_data() [2/2]

virtual Properties & dd::Schema::se_private_data ( )
pure virtual

Implemented in dd::Schema_impl.

◆ set_created()

virtual void dd::Schema::set_created ( ulonglong  created)
pure virtual

Implemented in dd::Schema_impl.

◆ set_default_collation_id()

virtual void dd::Schema::set_default_collation_id ( Object_id  default_collation_id)
pure virtual

Implemented in dd::Schema_impl.

◆ set_default_encryption()

virtual void dd::Schema::set_default_encryption ( bool  default_encryption)
pure virtual

Implemented in dd::Schema_impl.

◆ set_last_altered()

virtual void dd::Schema::set_last_altered ( ulonglong  last_altered)
pure virtual

Implemented in dd::Schema_impl.

◆ set_options() [1/2]

virtual bool dd::Schema::set_options ( const Properties options)
pure virtual

Implemented in dd::Schema_impl.

◆ set_options() [2/2]

virtual bool dd::Schema::set_options ( const String_type options_raw)
pure virtual

Implemented in dd::Schema_impl.

◆ set_read_only()

virtual void dd::Schema::set_read_only ( bool  state)
pure virtual

Implemented in dd::Schema_impl.

◆ set_se_private_data() [1/2]

virtual bool dd::Schema::set_se_private_data ( const Properties se_private_data)
pure virtual

Implemented in dd::Schema_impl.

◆ set_se_private_data() [2/2]

virtual bool dd::Schema::set_se_private_data ( const String_type se_private_data_raw)
pure virtual

Implemented in dd::Schema_impl.

◆ update_aux_key()

virtual bool dd::Schema::update_aux_key ( Aux_key ) const
inlinevirtual

◆ update_id_key() [1/2]

virtual bool dd::Schema::update_id_key ( Id_key key) const
inlinevirtual

◆ update_id_key() [2/2]

bool dd::Schema::update_id_key ( Id_key key,
Object_id  id 
)
static

◆ update_name_key() [1/2]

virtual bool dd::Schema::update_name_key ( Name_key key) const
inlinevirtual

◆ update_name_key() [2/2]

bool dd::Schema::update_name_key ( Name_key key,
const String_type name 
)
static

The documentation for this class was generated from the following files: