Skip to main content

Module csv

Module csv 

Source
Expand description

CSV export functionality for Exasol.

This module provides functions for exporting data from Exasol tables or query results to CSV format via files, streams, in-memory lists, or custom callbacks.

§Architecture

The export process uses client mode where:

  1. We connect TO Exasol (outbound connection - works through firewalls)
  2. Perform EXA tunneling handshake to receive an internal address
  3. Execute an EXPORT SQL statement using the internal address
  4. Exasol sends data through the established connection
  5. We read and process the data stream

This client mode approach works with cloud Exasol instances and through NAT/firewalls.

Structs§

CsvExportOptions
Options for CSV export configuration.
DataPipeReceiver
Receiver end of the data pipe for processing exported data.

Enums§

ExportError
Error types for export operations.

Functions§

export_to_callback
Exports data from an Exasol table or query using a custom callback.
export_to_file
Exports data from an Exasol table or query to a file.
export_to_list
Exports data from an Exasol table or query to an in-memory list of rows.
export_to_stream
Exports data from an Exasol table or query to an async writer.