wesql / wescale

WeScale is a Modern MySQL proxy that supports read-write-split, read-after-write-consistency, load balancing and OnlineDDL.
Apache License 2.0
199 stars 8 forks source link

Enhancement/allow filter fully qualified table names empty #488

Closed newborn22 closed 5 months ago

newborn22 commented 5 months ago

Related Issue(s) & Descriptions

pr: #479

The change is almost the same as #484. If user input "" or nothing as fully qualified table names when creating filter or "" when altering filter, the filter fully qualified table names will match any db.table.

Now, all the patterns will have a default value if user input nothing, so user can even skip with_pattern when creating filter, just like:

create filter ccl (
        desc='test ccl',
        priority='999',
        status='ACTIVE'
)
execute(
        action='Fail'
);

Checklist