26#ifndef MYSQLROUTER_LOG_FILTER_INCLUDED
27#define MYSQLROUTER_LOG_FILTER_INCLUDED
45 static const unsigned int kFillSize = 3;
52 std::string filter(std::string
statement)
const;
60 const std::vector<size_t> &group_indices);
67 void add_pattern(
const std::string &pattern,
const std::string &replacement);
70 std::vector<regex_search_and_replace_patterns>
patterns_;
Definition: log_filter.h:42
std::vector< regex_search_and_replace_patterns > patterns_
Definition: log_filter.h:70
void add_pattern(const std::string &pattern, const std::vector< size_t > &group_indices)
static const char kFillCharacter
Definition: log_filter.h:44
A SQLLogFilter allows to replace substrings defined by a set of hardcoded regular expressions with '*...
Definition: log_filter.h:77
void add_default_sql_patterns()
Definition: log_filter.cc:50
std::pair< std::regex, std::string > regex_search_and_replace_patterns
Definition: log_filter.h:35
#define ROUTER_LIB_EXPORT
Definition: router_export.h:15
Definition: mysqlslap.cc:217