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

感激,分分钟解决问题 #14

Closed
hellyguo opened this issue Apr 17, 2024 · 2 comments
Closed

感激,分分钟解决问题 #14

hellyguo opened this issue Apr 17, 2024 · 2 comments

Comments

@hellyguo
Copy link

ibd2sql 解决了表内数据误删问题,找回了数据。万分感谢!

一个小建议,命令的 usage 输出可调整一下:

usage: main.py [-h] [--version] [--ddl] [--sql] [--delete] [--complete-insert] [--force] [--set] [--multi-value] [--replace]
               [--table TABLE_NAME] [--schema SCHEMA_NAME] [--sdi-table SDI_TABLE] [--where-trx WHERE_TRX]
               [--where-rollptr WHERE_ROLLPTR] [--where WHERE] [--limit LIMIT] [--debug] [--debug-file DEBUG_FILE]
               [--page-min PAGE_MIN] [--page-max PAGE_MAX] [--page-start PAGE_START] [--page-count PAGE_COUNT]
               [--page-skip PAGE_SKIP] [--parallel PARALLEL]
               [FILENAME]

可改为

usage: 
main.py -h
main.py --version
main.py <FILENAME> [--ddl] [--sql] [--delete] [--complete-insert] [--force] [--set] [--multi-value] [--replace]
               [--table TABLE_NAME] [--schema SCHEMA_NAME] [--sdi-table SDI_TABLE] [--where-trx WHERE_TRX]
               [--where-rollptr WHERE_ROLLPTR] [--where WHERE] [--limit LIMIT] [--debug] [--debug-file DEBUG_FILE]
               [--page-min PAGE_MIN] [--page-max PAGE_MAX] [--page-start PAGE_START] [--page-count PAGE_COUNT]
               [--page-skip PAGE_SKIP] [--parallel PARALLEL]

这样与实际执行可保持一致,与 README.md 中的例子一致。

处置时紧张,一开始按 usage 中的文件名放最后方式去操作,没输出 sql。冷静后反复尝试才发现需要将文件名前置。

最后,再说一次,感谢!!!

@ddcw
Copy link
Owner

ddcw commented Apr 18, 2024

参数顺序没有关系啊, 我后面再调整下这个帮助信息吧(添加常用例子进去). 其实README.md里面也有例子的.
你把顺序有问题无法解析的截图(打码)发我一下呢. 还有python的版本
image

ibd2sql 解决了表内数据误删问题,找回了数据。万分感谢!

一个小建议,命令的 usage 输出可调整一下:

usage: main.py [-h] [--version] [--ddl] [--sql] [--delete] [--complete-insert] [--force] [--set] [--multi-value] [--replace]
               [--table TABLE_NAME] [--schema SCHEMA_NAME] [--sdi-table SDI_TABLE] [--where-trx WHERE_TRX]
               [--where-rollptr WHERE_ROLLPTR] [--where WHERE] [--limit LIMIT] [--debug] [--debug-file DEBUG_FILE]
               [--page-min PAGE_MIN] [--page-max PAGE_MAX] [--page-start PAGE_START] [--page-count PAGE_COUNT]
               [--page-skip PAGE_SKIP] [--parallel PARALLEL]
               [FILENAME]

可改为

usage: 
main.py -h
main.py --version
main.py <FILENAME> [--ddl] [--sql] [--delete] [--complete-insert] [--force] [--set] [--multi-value] [--replace]
               [--table TABLE_NAME] [--schema SCHEMA_NAME] [--sdi-table SDI_TABLE] [--where-trx WHERE_TRX]
               [--where-rollptr WHERE_ROLLPTR] [--where WHERE] [--limit LIMIT] [--debug] [--debug-file DEBUG_FILE]
               [--page-min PAGE_MIN] [--page-max PAGE_MAX] [--page-start PAGE_START] [--page-count PAGE_COUNT]
               [--page-skip PAGE_SKIP] [--parallel PARALLEL]

这样与实际执行可保持一致,与 README.md 中的例子一致。

处置时紧张,一开始按 usage 中的文件名放最后方式去操作,没输出 sql。冷静后反复尝试才发现需要将文件名前置。

最后,再说一次,感谢!!!

@hellyguo
Copy link
Author

事后重试,确实无区别,当时应该是太紧张了。非常感谢这个工具。

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

2 participants