HawkEx.CSV.Exporter (hawk_ex v0.1.0)

Copy Markdown View Source

Generates CSV content from HawkEx formatter modules.

This module is used by HawkEx.CSV.export/2 and the async export worker. Most applications should call HawkEx.CSV directly.

Summary

Functions

Generates a CSV string for the given account and formatter.

Functions

generate(account_id, export_type)

Generates a CSV string for the given account and formatter.

Accepts a built-in atom (:subscriptions, :audit_logs) or any module implementing HawkEx.CSV.Formatter.

Returns {:ok, csv_string, row_count} or {:error, reason}.