X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=docs%2Findex.rst;h=242918a82b9662afe66a49842caaa5a6d2d06e45;hb=ad24471fb724b4742e7f6c2cec341215ded452cd;hp=49cb311151e8825fa19315cc6b91e54dcf2e4a1d;hpb=4c93c3d89685aba33fc45082022373eb93b6583e;p=sqlconvert.git diff --git a/docs/index.rst b/docs/index.rst index 49cb311..242918a 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -20,34 +20,38 @@ The program is in its initial phase and currently cannot do much. Command line ------------ -mysql-to-sql.py -~~~~~~~~~~~~~~~ +mysql2sql +~~~~~~~~~ Usage:: - mysql-to-sql.py [-e encoding] [-E output_encoding] [infile] [[-o] outfile] + mysql2sql [-e encoding] [-E output_encoding] [infile] [[-o] outfile] Options:: - -e ENCODING, --encoding ENCODING + -e ENCODING, --encoding ENCODING input/output encoding, default is utf-8 - -E OUTPUT_ENCODING, --output-encoding OUTPUT_ENCODING + -E OUTPUT_ENCODING, --output-encoding OUTPUT_ENCODING separate output encoding, default is the same as `-e` except for console; for console output charset from the current locale is used + -P, --no-pbar Inhibit progress bar infile Input file, stdin if absent or '-' -o, --outfile outfile Output file, stdout if absent or '-' +If stderr is connected to the console the program displays a text mode progress +bar. Option `-P/--no-pbar` inhibits it. + Option `-o` is useful when infile is absent (input is redirected), for example:: - mysql-to-sql.py -o outfile.sql < infile.sql - cat infile.sql | mysql-to-sql.py -o outfile.sql + mysql2sql -o outfile.sql < infile.sql + cat infile.sql | mysql2sql -o outfile.sql -But of course it simple can be:: +But of course it simply can be:: - mysql-to-sql.py - outfile.sql < infile.sql - cat infile.sql | mysql-to-sql.py - outfile.sql + mysql2sql - outfile.sql < infile.sql + cat infile.sql | mysql2sql - outfile.sql Indices and tables