MySQL 9.1.0
Source Code Documentation
plugin_query_rewrite.h File Reference

API for the query rewrite plugin types (MYSQL_REWRITE_PRE_PARSE_PLUGIN and MYSQL_REWRITE_POST_PARSE_PLUGIN). More...

#include "plugin.h"

Go to the source code of this file.

Classes

struct  Mysql_rewrite_post_parse_param
 Structure that is passed during each step of a rewriting. More...
 
struct  st_mysql_rewrite_post_parse
 
struct  Mysql_rewrite_pre_parse_param
 Structure that is passed during each step of a rewriting. More...
 
struct  st_mysql_rewrite_pre_parse
 

Macros

#define FLAG_REWRITE_PLUGIN_QUERY_REWRITTEN   1
 Must be set by a plugin if the query is rewritten. More...
 
#define FLAG_REWRITE_PLUGIN_IS_PREPARED_STATEMENT   2
 Is set by the server if the query is prepared statement. More...
 

Typedefs

typedef struct Mysql_rewrite_post_parse_param Mysql_rewrite_post_parse_param
 Structure that is passed during each step of a rewriting. More...
 
typedef struct Mysql_rewrite_pre_parse_param Mysql_rewrite_pre_parse_param
 Structure that is passed during each step of a rewriting. More...
 

Detailed Description

API for the query rewrite plugin types (MYSQL_REWRITE_PRE_PARSE_PLUGIN and MYSQL_REWRITE_POST_PARSE_PLUGIN).

Macro Definition Documentation

◆ FLAG_REWRITE_PLUGIN_IS_PREPARED_STATEMENT

#define FLAG_REWRITE_PLUGIN_IS_PREPARED_STATEMENT   2

Is set by the server if the query is prepared statement.

◆ FLAG_REWRITE_PLUGIN_QUERY_REWRITTEN

#define FLAG_REWRITE_PLUGIN_QUERY_REWRITTEN   1

Must be set by a plugin if the query is rewritten.

Typedef Documentation

◆ Mysql_rewrite_post_parse_param

Structure that is passed during each step of a rewriting.

◆ Mysql_rewrite_pre_parse_param

Structure that is passed during each step of a rewriting.