Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mysqldumpdissect: RFE: --coleq better help, and better syntax, and --[no-]human #44

Open
wdoekes opened this issue Jul 18, 2024 · 0 comments

Comments

@wdoekes
Copy link
Member

wdoekes commented Jul 18, 2024

The --[no-]human should enable/disable space after a comma. Instead of:

INSERT INTO `pstore_property` VALUES (126727,'2019-10-28 15:03:22',7321,'ip',1,'10.10.10.10',NULL);

I want:

INSERT INTO `pstore_property` VALUES (126727, '2019-10-28 15:03:22', 7321, 'ip', 1, '10.10.10.10', NULL);

by (--human) default.

As for the --coleq, this is described at the top already:

#   * The --coleq rule match syntax is clunky and restrictive. Maybe do:
#     table_name[colidx]=value and then add and/or.

And the --help text is insufficient.

Instead of this search:

mysqldumpdissect -f pstore.sql --coleq pstore_property=2:i:7321 | grep ",10);"

I'd like to do this:

mysqldumpdissect -f pstore.sql --coleq 'pstore_property[2]=(i)7321 & pstore_property[6]=(i)10'
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

No branches or pull requests

1 participant