MySQL 8.0.39
Source Code Documentation
Rewriter_create_server Class Referencefinal

Rewrites the CREATE SERVER statement. More...

#include <sql_rewrite.h>

Inheritance diagram for Rewriter_create_server:
[legend]

Public Member Functions

 Rewriter_create_server (THD *thd, Consumer_type type)
 
bool rewrite (String &rlb) const override
 Rewrite the query for the CREATE SERVER statement. More...
 
- Public Member Functions inherited from Rewriter_server_option
 Rewriter_server_option (THD *thd, Consumer_type type)
 
- Public Member Functions inherited from I_rewriter
 I_rewriter (THD *thd, Consumer_type type)
 
virtual ~I_rewriter ()
 
 I_rewriter (const I_rewriter &)=delete
 
const I_rewriteroperator= (const I_rewriter &)=delete
 
 I_rewriter (const I_rewriter &&)=delete
 
const I_rewriteroperator= (const I_rewriter &&)=delete
 
void set_consumer_type (Consumer_type type)
 Reset the previous consumer type. More...
 
Consumer_type consumer_type ()
 Return the current consumer type set in the object. More...
 

Private Types

using parent = Rewriter_server_option
 

Additional Inherited Members

- Protected Member Functions inherited from Rewriter_server_option
void mysql_rewrite_server_options (const LEX *lex, String *str) const
 Append the SERVER OPTIONS clause. More...
 
- Protected Attributes inherited from I_rewriter
THD *const m_thd
 
Consumer_type m_consumer_type
 

Detailed Description

Rewrites the CREATE SERVER statement.

Member Typedef Documentation

◆ parent

Constructor & Destructor Documentation

◆ Rewriter_create_server()

Rewriter_create_server::Rewriter_create_server ( THD thd,
Consumer_type  type 
)

Member Function Documentation

◆ rewrite()

bool Rewriter_create_server::rewrite ( String rlb) const
overridevirtual

Rewrite the query for the CREATE SERVER statement.

Parameters
[in,out]rlbBuffer to return the rewritten query in.
Return values
truethe query was rewritten
falseotherwise

Implements I_rewriter.


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