GoEddie / DeploymentContributorFilterer

MIT License
73 stars 35 forks source link

MultiPartName filter type #19

Closed jpeirson closed 3 years ago

jpeirson commented 5 years ago

This adds a new MultiPartName filter type, and implicitly extends the Name filter type by letting it support commas.

The (my) use case for this is to be able to specify name filtering rules that match not just the last part of an object name, but multiple parts, from right to left. For example, if I specifically care about a MyTable object in the dbo schema, not just any schema:

KeepName(dbo,MyTable)

The existing KeepName behavior is unchanged; it's just that providing a comma-separated set of values will invoke this new feature being merged here.

Technically, this also behaves identically:

KeepMultiPartName(dbo,MyTable)

but it seems to me that this separation of filter type is more of an internal thing, and can be done more simply by an end-user via KeepName(). But in any case an end-user can specify the same thing both ways.

GoEddie commented 3 years ago

Thanks, sorry I don't visit here very often so only just saw it!