HawkEx.CSV.Export (hawk_ex v0.1.0)

Copy Markdown View Source

Ecto schema for a CSV export job and its generated file.

Export records are created before generation begins with status "pending". Workers update them to "completed" when storage succeeds or "failed" when generation or storage fails.

The file_path field stores the adapter-specific path returned by HawkEx.CSV.Storage, such as a local filesystem path or an s3://... URI.

Summary

Functions

Builds a changeset for creating or updating an export record.

All valid CSV export statuses.

Functions

changeset(export, attrs)

Builds a changeset for creating or updating an export record.

account_id and export_type are required. status defaults to "pending" and must be one of valid_statuses/0.

valid_statuses()

All valid CSV export statuses.