#include <query_rewrite.h>
|
| static bool | addPlugin (QueryRewriter &in_rewriter) |
| static void | removePlugin (QueryRewriter &in_rewriter) |
| static void | rewriteQuery (const std::string &schema, std::string &to_rewrite) |
|
| typedef std::pair< const std::string, const std::string > | map_key |
| typedef std::unique_ptr< plugin::Plugin, deleter_fn > | owned_ptr |
| typedef std::map< const map_key, owned_ptr > | map |
| typedef std::vector< Plugin * > | vector |
Class which rewrites queries
Definition at line 44 of file query_rewrite.h.
◆ QueryRewriter()
| drizzled::plugin::QueryRewriter::QueryRewriter |
( |
std::string | name_arg | ) |
|
|
inlineexplicit |
◆ addPlugin()
| bool drizzled::plugin::QueryRewriter::addPlugin |
( |
QueryRewriter & | in_rewriter | ) |
|
|
static |
◆ removePlugin()
| void drizzled::plugin::QueryRewriter::removePlugin |
( |
QueryRewriter & | in_rewriter | ) |
|
|
static |
◆ rewrite()
| virtual void drizzled::plugin::QueryRewriter::rewrite |
( |
const std::string & | schema, |
|
|
std::string & | to_rewrite ) |
|
pure virtual |
Rewrite a query in the form of a std::string
- Parameters
-
| [in] | schema | the schema the current session is in |
| [out] | to_rewrite | string representing the query to rewrite |
◆ rewriteQuery()
| void drizzled::plugin::QueryRewriter::rewriteQuery |
( |
const std::string & | schema, |
|
|
std::string & | to_rewrite ) |
|
static |
Take a query to be rewritten and go through all the rewriters that are registered as plugins and let the enabled ones rewrite they query. TODO: does it make sense to have multiple rewriters?
- Parameters
-
| [in] | schema | the schema the current session is |
| [out] | to_rewrite | the query to rewrite |
Definition at line 59 of file query_rewrite.cc.
The documentation for this class was generated from the following files: