qvd2evd
(since EVL 2.4)
Read header of <file.qvd>
or standard input, guess data types, and write EVD to standard
output or to <file.evd>
.
EVD is EVL data definition file, for details see man 5 evd.
Synopsis
qvd2evd [<file.qvd>] [-o|--output=<file.evd>] [--all-as-string | --real-as-decimal[=<precision>,<scale>]] [-d|--date=<format>] [--inline] [-l|--null=<string>] [-q|--quote=<char>] [-r|--record-separator=<char>] [-s|--field-separator=<char>] [-t|--datetime=<format>] [-v|--verbose] qvd2evd ( --help | --usage | --version )
Options
- --all-as-string
-
produce EVD with all fields as strings. (Since EVL 2.5.)
- -d, --date=<date_format>
-
use format argument for date data type
- --inline
-
output EVD in the inline format (for example to use EVD by other component with ‘-d’ option)
- -l, --null=<string>
-
to specify what string is used for NULL values in QVD, empty string is allowed
- -o, --output=<file.evd>
-
write output into file <file.evd> instead of standard output
- -q, --quote=<char>
-
to use a quote argument in EVD
- --real-as-decimal[=<precision>,<scale>]
-
produce EVD with ‘decimal(<precision>,<scale>)’ instead of ‘double’. When no
<precision>
or<scale>
is specified, it uses values from environment variables ‘EVL_DEFAULT_DECIMAL_PRECISION’ and ‘EVL_DEFAULT_DECIMAL_SCALE’, which are by default set to 18 and 2. (Since EVL 2.5.) - -r, --record-separator=<char>
-
use ‘sep="<char>"’ for last field
- -s, --field-separator=<char>
-
use ‘sep="<char>"’ for each field
- -t, --datetime=<format>
-
use format for datetime data type
- -v, --verbose
-
print to STDERR info/debug messages
- --help
-
print this help and exit
- --usage
-
print short usage information and exit
- --version
-
print version and exit
Examples
- Having ‘some.qvd’, this command:
qvd2evd --null -r '\n' -s ';' -d '%d.%m.%Y' some.qvd
will produce:
id int null="" sep=";" started date("%d.%m.%Y") null="" sep=";" value string null="" sep="\n"