MySQL  8.0.20
Source Code Documentation
dd::System_views Class Reference

Class used to represent the system views. More...

#include <system_registry.h>

Public Types

enum  Types { Types::INFORMATION_SCHEMA, Types::NON_DD_BASED_INFORMATION_SCHEMA }
 
typedef System_view_registry_type::Const_iterator Const_iterator
 

Public Member Functions

void init ()
 
void add (const String_type &schema_name, const String_type &view_name, Types type, const system_views::System_view *view)
 
const system_views::System_viewfind (const String_type &schema_name, const String_type &view_name) const
 
Const_iterator begin () const
 
Const_iterator begin (Types type) const
 
Const_iterator end () const
 
Const_iterator next (Const_iterator current, Types type) const
 
void dump () const
 

Static Public Member Functions

static const char * type_name (Types type)
 
static System_viewsinstance ()
 

Private Types

typedef Entity_registry< std::pair< const String_type, const String_type >, const system_views::System_view, Types, type_name, trueSystem_view_registry_type
 

Private Attributes

System_view_registry_type m_registry
 

Detailed Description

Class used to represent the system views.

This class is a singleton used to represent meta data of the system views, i.e., the views that are available through the information schema.

Note
The registry currently only stores the view names and their (dummy) classification.

The singleton contains an instance of the Entity_registry class, and has methods that mostly delegate to this instance.

Member Typedef Documentation

◆ Const_iterator

◆ System_view_registry_type

Member Enumeration Documentation

◆ Types

Enumerator
INFORMATION_SCHEMA 
NON_DD_BASED_INFORMATION_SCHEMA 

Member Function Documentation

◆ add()

void dd::System_views::add ( const String_type schema_name,
const String_type view_name,
Types  type,
const system_views::System_view view 
)
inline

◆ begin() [1/2]

Const_iterator dd::System_views::begin ( void  ) const
inline

◆ begin() [2/2]

Const_iterator dd::System_views::begin ( Types  type) const
inline

◆ dump()

void dd::System_views::dump ( ) const
inline

◆ end()

Const_iterator dd::System_views::end ( void  ) const
inline

◆ find()

const system_views::System_view* dd::System_views::find ( const String_type schema_name,
const String_type view_name 
) const
inline

◆ init()

void dd::System_views::init ( )

◆ instance()

System_views * dd::System_views::instance ( )
static

◆ next()

Const_iterator dd::System_views::next ( Const_iterator  current,
Types  type 
) const
inline

◆ type_name()

static const char* dd::System_views::type_name ( Types  type)
inlinestatic

Member Data Documentation

◆ m_registry

System_view_registry_type dd::System_views::m_registry
private

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