MXS-701: Improve binlogfilter

Added `match` and `exclude` functionality. This allows versatile filtering
without a large investment of development time by leveraging the benefits
of PCRE2 regular expressions.

Also cleaned up the filter and removed the single table matching and
active parameter that were obsoleted by the regular expression parameters.
This commit is contained in:
Markus Mäkelä
2018-09-21 11:31:15 +03:00
parent f3d96822d0
commit 047242a721
6 changed files with 166 additions and 393 deletions

View File

@ -761,6 +761,13 @@ qc_sql_mode_t qc_get_sql_mode();
*/
char** qc_get_table_names(GWBUF* stmt, int* size, bool fullnames);
/**
* Free tables returned by qc_get_table_names
*
* @param names List of names
* @param size Size of @c names
*/
void qc_free_table_names(char** names, int size);
/**
* Returns a bitmask specifying the type(s) of the statement. The result