Skip to content

feat(diff): Added ability to ignore rows using regular expression#35

Open
NTlegend wants to merge 1 commit intoDBDiff:masterfrom
NTlegend:master
Open

feat(diff): Added ability to ignore rows using regular expression#35
NTlegend wants to merge 1 commit intoDBDiff:masterfrom
NTlegend:master

Conversation

@NTlegend
Copy link

This feature helpful for WordPress sites where we have many data rows in tables like wp_options.

Copy link
Member

@jasdeepkhalsa jasdeepkhalsa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi here NTlegend!

Thanks for the great suggestion and PR - I think people will find this really useful!

Two comments:

  • I would prefer that instead of creating a new API for this, that it's rolled into the existing ignore tables and fields feature e.g.
tablesToIgnore:
- table*
fieldsToIgnore:
    table1:
        - field_wp_*
    table_wp*:
        - [a-zA-Z]\d*\.\d*.
  • This feature should be tested thoroughly to ensure it does not break the existing functionality or the ordinary operation of DBDiff. Test cases would be welcome (even though we currently don't have any)!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants