mysqlsuperdump icon indicating copy to clipboard operation
mysqlsuperdump copied to clipboard

Add support for allowlist filter

Open willhardy opened this issue 3 years ago • 0 comments

Currently it is not possible to exclude unknown tables. This change allows tables to be explicitly listed so that only those tables will be dumped.

For example, the following will only export the customer table.

[filter]
* = ignore
customer = include

(The existing code is hardly touched, this is mostly just additions. However, one line is slightly refactored to early-exit, so the remaining code in the function ends up being de-indented.)

willhardy avatar Dec 10 '20 18:12 willhardy