![]() |
MySQL 9.0.0
Source Code Documentation
|
Rewrites the CREATE SERVER statement. More...
#include <sql_rewrite.h>
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... | |
![]() | |
Rewriter_server_option (THD *thd, Consumer_type type) | |
![]() | |
I_rewriter (THD *thd, Consumer_type type) | |
virtual | ~I_rewriter () |
I_rewriter (const I_rewriter &)=delete | |
const I_rewriter & | operator= (const I_rewriter &)=delete |
I_rewriter (const I_rewriter &&)=delete | |
const I_rewriter & | operator= (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 | |
![]() | |
void | mysql_rewrite_server_options (const LEX *lex, String *str) const |
Append the SERVER OPTIONS clause. More... | |
![]() | |
THD *const | m_thd |
Consumer_type | m_consumer_type |
Rewrites the CREATE SERVER statement.
|
private |
Rewriter_create_server::Rewriter_create_server | ( | THD * | thd, |
Consumer_type | type | ||
) |
|
overridevirtual |
Rewrite the query for the CREATE SERVER statement.
[in,out] | rlb | Buffer to return the rewritten query in. |
true | the query was rewritten |
false | otherwise |
Implements I_rewriter.