X Tutup
Skip to content

Improve instructions on how to use this script.#76

Merged
dumblob merged 2 commits intomysql2sqlite:masterfrom
c9845:improved-usage-instructions
Aug 24, 2020
Merged

Improve instructions on how to use this script.#76
dumblob merged 2 commits intomysql2sqlite:masterfrom
c9845:improved-usage-instructions

Conversation

@c9845
Copy link
Contributor

@c9845 c9845 commented Aug 24, 2020

Instructions now refect the "direct pipe" method as noted in the README.

Direct piping to sqlite3 is typically how this script will be used since you get a sqlite database file as a result.

…ect the "direct pipe" method as noted in the README.

Direct piping to sqlite3 is typically how this script will be used since you get a sqlite database file as a result.
mysql2sqlite Outdated
"USAGE: mysql2sqlite dump_mysql.sql > dump_sqlite3.sql\n" \
" file name - (dash) is not supported, because - means stdin")
"USAGE:\n"\
" - mysql2sqlite dump_mysql.sql > dump_sqlite3.sql\n" \
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think - is superfluous and a bit confusing (the whole line should be copy&pastable IMHO). Could you adjust it? (same goes for the second next line).

mysql2sqlite Outdated
" - mysql2sqlite dump_mysql.sql | sqlite3 sqlite.db\n" \
"\n" \
"NOTES:\n" \
" - Dash in filename is not supported, because dash (-) means stdin.")
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd say the leading - here is also superfluous (but this time because it's a plain paragraph, not because it's copy&pastable code 😉).

If you're at it, just add space before the last ) to maintain the code style (which is admittedly not well followed in this script - but there is a huge change to behavior planned and then it'll hopefully get better 😉).

@c9845
Copy link
Contributor Author

c9845 commented Aug 24, 2020

@dumblob Dashes removed, space added.

@dumblob dumblob merged commit f10372d into mysql2sqlite:master Aug 24, 2020
@dumblob
Copy link
Collaborator

dumblob commented Aug 24, 2020

Thanks!

@c9845 c9845 deleted the improved-usage-instructions branch August 24, 2020 20:34
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

X Tutup