MYSQL-XML-TO-CSV(1)
πΈ NAME πΈ
Okay bestie, welcome to the mysql-xml-to-csv(1) page from the General Commands Manual β it's literally the glow-up guide for mysql-xml-to-csv β Convert MySQL XML output to CSV. XML in, CSV out, no cap. π
β¨ SYNOPSIS β¨
mysql-xml-to-csv [-E line] [-n value] [-N] [-s separator] [input.xml]
π DESCRIPTION π
So here's the vibe: mysql-xml-to-csv converts MySQL XML query results β like, the ones produced using the mysql(1) command when given the --xml flag β into a CSV file. Iconic behavior, honestly.
The XML input is read from input.xml if it's specified; otherwise it comes from standard input. The CSV output gets written to standard output. Very main-character energy: reads quietly, writes to stdout. π¦
The first row of the CSV output contains column names unless the -N flag is given.
If the query result set contains zero rows, then by default nothing is output; this behavior can be altered using the -E flag. Yes bestie, zero rows means zero drama by default. π
By default NULL column values are converted into the empty string; this behavior can be altered using the -n flag.
The character encoding used for the CVS output is UTF-8. π
π OPTIONS π
-Eβ If the result set contains zero rows, output line followed by a newline character instead of outputting nothing. No validation of line is performed.-nβ Output value instead of the empty string forNULLvalues.-Nβ Do not output the column names in the first row of the output file.-sβ Specify an alternate column separator (default is comma).
π RETURN VALUES π
mysql-xml-to-csv exits with one of the following values:
0β Input was successfully processed.1β An error occurred.
π¦ SEE ALSO π¦
mysql-xml-to-csv: Convert MySQL XML output to CSV,https://github.com/archiecobbs/mysql-xml-to-csv.
π AUTHOR π
Archie L. Cobbs <archie.cobbs@gmail.com>
That's the whole manual, bestie. This page is from Debian and dated September 16, 2024 β slay. π β¨
π¦ where this page comes from
- opensuse-leap 16.0: mysql-xml-to-csv 1.0.1-bp160.1.12 Β· Apache-2.0
- opensuse-leap 16.0: mysql-xml-to-csv 1.0.1-bp160.1.12 Β· Apache-2.0
- opensuse-leap 16.0: mysql-xml-to-csv 1.0.1-bp160.1.12 Β· Apache-2.0
- opensuse-leap 16.0: mysql-xml-to-csv 1.0.1-bp160.1.12 Β· Apache-2.0
- Copyright (C) 2021 Archie L. Cobbs. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms