Output formats
The output projection selects one of the supported formats and its format-specific options.
Formats
| Output | Use |
|---|---|
| CSV, TSV | Interchange and spreadsheet workflows. |
| GDPdU | index.xml and data files for German tax audit software; see GDPdU export. |
| XLSX | Spreadsheet files. |
| Parquet | Columnar analytics. |
| JSON, JSON Lines, YAML, XML | Structured document output. |
| SQL | Database load workflows. |
| Format | Options |
|---|---|
csv |
bom, dateFormat, decimalSeparator, delimiter, encoding, eol, groupSeparator, header, locale, maxRowsPerFile, negativeSign, nullDate, quote |
gdpdu |
comment, dateFormat, decimalSeparator, delimiter, encoding, eol, groupSeparator, locale, location, name, nullDate |
json |
maxRowsPerFile, pretty |
jsonl |
maxRowsPerFile |
parquet |
maxRowsPerFile |
sql |
maxRowsPerFile, rowsPerInsert |
tsv |
bom, dateFormat, decimalSeparator, encoding, eol, groupSeparator, header, locale, maxRowsPerFile, negativeSign, nullDate |
xlsx |
|
xml |
maxRowsPerFile, recordElement, rootElement |
yaml |
maxRowsPerFile |
Packages can combine generated data with database load scripts and manifests where supported. See the generated format list.
PDF documents
PDF generation is a separate, recipe-free workflow for localized filler text. output pdf is not accepted in GBDDL.
Test scenarios
Scenario projections target k6, Artillery, JMeter, Postman, Hurl and HTTP files. They package data with runnable test assets; Ghost Bakery does not execute the tests. See test scenarios.
CSV and TSV spelling
CSV and TSV write numbers, dates and text the way an import expects them. Every option is optional, and an explicit option wins over the locale preset.
| Option | Values | Default |
|---|---|---|
encoding |
utf-8, windows-1252, iso-8859-1, iso-8859-15 |
utf-8 |
decimalSeparator |
. or , |
. |
groupSeparator |
., ,, a space, or empty |
none |
negativeSign |
leading (-42,50) or trailing (42,50-) |
leading |
dateFormat |
a pattern of yyyy, yy, MM, dd, HH, mm, ss and separators, such as dd.MM.yyyy |
ISO 8601 |
nullDate |
text written for a NULL date or timestamp, such as 00.00.0000 |
an empty field (\N in TSV) |
quote |
CSV only: minimal or all (every text field is quoted) |
minimal |
locale |
a catalog locale such as de-DE or pt-BR |
none |
The locale preset fills decimalSeparator, dateFormat and encoding from the catalog, and a ; delimiter in CSV when the decimal separator is a comma. It never turns digit grouping on. The recipe is refused, before any credit is spent, when:
- the decimal separator is a comma and the CSV delimiter is also a comma, or the group separator equals the delimiter or the decimal separator;
bom: trueis set with a charset other thanutf-8(the byte order mark belongs to UTF-8, and a legacy charset writes none by default);- a legacy charset is combined with a language it cannot write, such as Polish, Russian or Chinese. A single character outside the charset, such as
€in ISO 8859-1, fails the job instead of being replaced with?.
dateFormat and nullDate apply to date, timestamp and timestamptz columns. A two digit yy year loses the century when the file is read back. Numeric options apply to integer, decimal and float columns.
gbddl 1
language(deu)
table postings rows 20 (
id int64 primarykey autoincrement
account int32 integer(min: 1000, max: 8999)
amount decimal(12, 2) money(min: -5000, max: 250000)
posted_on date null(20%) date(min: "2026-01-01", max: "2026-12-31")
)
output csv (locale: "de-DE", nullDate: "00.00.0000", quote: "all")Files with a decimal comma, grouping, a trailing minus or a date format are not read by PostgreSQL COPY, so those packages have no PostgreSQL load script and the manifest says why.
GDPdU export
output gdpdu writes the layout German tax audit software imports (GDPdU, the Beschreibungsstandard of 2002): one headerless data file per table and an index.xml that describes them. The package holds index.xml and the DTD gdpdu-01-08-2002.dtd at its root and the data files under tables/.
The files are spelled in German by default: locale: "de-DE" gives a decimal comma, dd.MM.yyyy dates, Windows-1252 and a ; delimiter, with CRLF line ends. Every spelling option of the table above applies and wins over the preset, except negativeSign (index.xml cannot describe a trailing minus), bom and header (the importers read the files by the layout index.xml gives) and maxRowsPerFile (a table is one file). The charsets are windows-1252, iso-8859-1 and utf-8.
| Option | Values | Default |
|---|---|---|
name, location, comment |
the data supplier named in index.xml; it is left out when none is set |
none |
delimiter |
one character | ; |
eol |
crlf or lf |
crlf |
index.xml lists each table with its file, charset, decimal symbol and delimiters, then its columns in file order: a primary key as VariablePrimaryKey (only when the key columns come first in the table, since the format lists keys before other columns), Numeric with its number of decimals, Date with its format, and AlphaNumeric with the longest length the recipe can produce. Foreign keys are listed as ForeignKey with the parent table. It holds nothing computed from the rows, such as counts or totals.
A column must be text, a whole number, decimal(p, s), a date, a boolean or a uuid. The recipe is refused for float64 (no fixed number of decimals), timestamp, timestamptz, time and bytes; use decimal, date or text instead.
gbddl 1
language(deu)
table vendors rows 5 (
number int64 primarykey autoincrement
name text fullName()
)
table open_items rows 12 per(vendors, 1, 4) (
id int64 primarykey autoincrement
vendor int64 fk(vendors.number)
amount decimal(12, 2) money(min: 10, max: 9000)
due_on date date(min: "2026-01-01", max: "2026-12-31")
)
output gdpdu (name: "Example GmbH", location: "Hamburg", comment: "Open items 2026")Packages and limits
Supported formats can split data using maxRowsPerFile. CSV/TSV support line endings and optional BOM; CSV also supports a custom delimiter. XLSX uses its own spreadsheet limits. PostgreSQL load helpers are included for CSV, TSV and SQL packages (not for GDPdU, which audit software reads) and assume the target tables already exist. Cyclic foreign keys require suitable deferrable constraints in the target database.
Availability and size ceilings depend on current policy. Validate the recipe before creating a job.