MySQL 9.0.0
Source Code Documentation
mysqlrouter::LogFilter Class Reference

#include <log_filter.h>

Inheritance diagram for mysqlrouter::LogFilter:
[legend]

Public Member Functions

std::string filter (std::string statement) const
 
void add_pattern (const std::string &pattern, const std::vector< size_t > &group_indices)
 
void add_pattern (const std::string &pattern, const std::string &replacement)
 

Static Public Attributes

static const char kFillCharacter = '*'
 
static const unsigned int kFillSize = 3
 

Private Attributes

std::vector< regex_search_and_replace_patternspatterns_
 

Member Function Documentation

◆ add_pattern() [1/2]

void mysqlrouter::LogFilter::add_pattern ( const std::string &  pattern,
const std::string &  replacement 
)

◆ add_pattern() [2/2]

void mysqlrouter::LogFilter::add_pattern ( const std::string &  pattern,
const std::vector< size_t > &  group_indices 
)

◆ filter()

std::string mysqlrouter::LogFilter::filter ( std::string  statement) const

Member Data Documentation

◆ kFillCharacter

const char mysqlrouter::LogFilter::kFillCharacter = '*'
static

◆ kFillSize

const unsigned int mysqlrouter::LogFilter::kFillSize = 3
static

◆ patterns_

std::vector<regex_search_and_replace_patterns> mysqlrouter::LogFilter::patterns_
private

The documentation for this class was generated from the following files: