Export Format Types
The following export format types are available:
Atom: ATOM news feed.Csv: Comma-separated values.Data: binary data.Html: HTML page.Json: JSON.JsonDataSet: JSON with the column definitions apart from the rows.NdJson: NDJSON, one JSON object per row on a line of its own.Rss: RSS news feed.Text: plain text.Tsv: tab separated values.Xlsx: Microsoft Excel workbook.Xml: XML.
Content Type
The content type of the answer follows from the format:
Atom:text/xml; charset=utf-8.Csv:text/csv; charset=utf-8.Data: the value of theContentTypecolumn, or absent when the result set has no such column.Html:text/html; charset=utf-8.Json:application/json; charset=utf-8.JsonDataSet:application/json; charset=utf-8.NdJson:application/x-ndjson; charset=utf-8.Rss:text/xml; charset=utf-8.Text:text/plain; charset=utf-8.Tsv:text/tab-separated-values; charset=utf-8.Xlsx:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.Xml:text/xml; charset=utf-8.
NDJSON is a sequence of JSON documents rather than one JSON document, so a client which parses the answer as JSON fails on the second line. From release 27.0 onward the answer is therefore announced as application/x-ndjson; up to and including release 26.0 it was announced as application/json.
A deviating content type is set with the contenttype request parameter or on the preset, as described in Presets. It replaces the content type listed above, whichever format is requested.
JSON Data Set Format Type
The Json format type writes every row as a JSON object of its own, with the column name repeated on each row. The JsonDataSet format type instead writes the column definitions once and the rows apart from them, which is the shape a result set is read back from. The audit information of the result set is reduced to its name: the SQL statement, the values of the bind parameters, the connection, the user and the identification used for billing are not part of the answer. The format is available from release 27.0 onward; up to and including release 26.0 a request for it was refused.
RSS and Atom Format Type
The following column names have a special meaning for the Rss and Atom format type:
content: contents of the feed.title: Atom/RSS title.id: ID of the Atom/RSS feed.updated: update moment of the Atom/RSS feed. Where necessary, a column alias can be used to get the desired column name. Values for columns with names different from those listed are ignored.
Data Format Type
The Data format type returns a binary download, such as a ZIP file. The following column names have a special meaning for the Data format type:
Contents: the binary data.FileName: file name linked to download.ContentCreationDate: creation date to return as HTTP header.DispositionType: disposition type to return as HTTP header.ContentType: content type to return as HTTP header. Where necessary, a column alias can be used to get the desired column name. Values for columns with names different from those listed are ignored.