~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/query_rewrite.h

  • Committer: Brian Aker
  • Date: 2010-03-10 06:06:57 UTC
  • mfrom: (1307.1.6 new-query-rewrite)
  • Revision ID: brian@gaz-20100310060657-dfw6cqq592v0vdcl
Merge in Padraig changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
  /**
56
56
   * Rewrite a query in the form of a std::string
57
57
   *
 
58
   * @param[in] schema the schema the current session is in
58
59
   * @param[out] to_rewrite string representing the query to rewrite
59
60
   */
60
 
  virtual void rewrite(std::string &to_rewrite)= 0; 
 
61
  virtual void rewrite(const std::string &schema, std::string &to_rewrite)= 0; 
61
62
 
62
63
  static bool addPlugin(QueryRewriter *in_rewriter);
63
64
  static void removePlugin(QueryRewriter *in_rewriter);
67
68
   * and let the enabled ones rewrite they query.
68
69
   * TODO: does it make sense to have multiple rewriters?
69
70
   *
 
71
   * @param[in] schema the schema the current session is
70
72
   * @param[out] to_rewrite string representing the query to rewrite
71
73
   */
72
 
  static void rewriteQuery(std::string &to_rewrite);
 
74
  static void rewriteQuery(const std::string &schema, std::string &to_rewrite);
73
75
 
74
76
private:
75
77