1#ifndef PLUGIN_QUERY_REWRITE_INCLUDED
2#define PLUGIN_QUERY_REWRITE_INCLUDED
36#define FLAG_REWRITE_PLUGIN_QUERY_REWRITTEN 1
39#define FLAG_REWRITE_PLUGIN_IS_PREPARED_STATEMENT 2
#define MYSQL_THD
Definition: backup_page_tracker.h:38
struct Mysql_rewrite_pre_parse_param Mysql_rewrite_pre_parse_param
Structure that is passed during each step of a rewriting.
struct Mysql_rewrite_post_parse_param Mysql_rewrite_post_parse_param
Structure that is passed during each step of a rewriting.
Structure that is passed during each step of a rewriting.
Definition: plugin_query_rewrite.h:42
int flags
Indicate the status of the current rewrite.
Definition: plugin_query_rewrite.h:48
void * data
Pointer left to the plugin to store any necessary info as needed.
Definition: plugin_query_rewrite.h:54
MYSQL_THD thd
The current session.
Definition: plugin_query_rewrite.h:51
Structure that is passed during each step of a rewriting.
Definition: plugin_query_rewrite.h:64
size_t rewritten_query_length
Length of the rewritten query, if applicable.
Definition: plugin_query_rewrite.h:88
int flags
Indicate the status of the current rewrite.
Definition: plugin_query_rewrite.h:70
const char * query
The query potentially to be rewritten.
Definition: plugin_query_rewrite.h:79
void * data
Pointer left to the plugin to store any necessary info as needed.
Definition: plugin_query_rewrite.h:76
const char * rewritten_query
The rewritten query, if applicable.
Definition: plugin_query_rewrite.h:85
MYSQL_THD thd
The current session.
Definition: plugin_query_rewrite.h:73
size_t query_length
Length of query potentially to be rewritten.
Definition: plugin_query_rewrite.h:82
Definition: plugin_query_rewrite.h:57
int interface_version
Definition: plugin_query_rewrite.h:58
int needs_statement_digest
Definition: plugin_query_rewrite.h:59
int(* rewrite)(Mysql_rewrite_post_parse_param *param)
Definition: plugin_query_rewrite.h:60
Definition: plugin_query_rewrite.h:91
int(* deinit)(Mysql_rewrite_pre_parse_param *param)
Definition: plugin_query_rewrite.h:94
int interface_version
Definition: plugin_query_rewrite.h:92
int(* rewrite)(Mysql_rewrite_pre_parse_param *param)
Definition: plugin_query_rewrite.h:93