Skip to content

Add lazy CSV and NDJSON export chunks - #124

Open
glamboyosa wants to merge 1 commit into
prooflinedev:mainfrom
glamboyosa:feat/export-chunks
Open

glamboyosa wants to merge 1 commit into
prooflinedev:mainfrom
glamboyosa:feat/export-chunks

Conversation

@glamboyosa

Copy link
Copy Markdown

Summary

iterExportPages → iterExportChunks → Readable.from → file

Add a lazy CSV/NDJSON iterator for writing paginated analytics exports to one output. CSV retains original cells and one header; missing record terminators are added between pages. Reuse existing pagination bounds and errors, and refuse changed CSV headers.

Evidence

  • Before: callers must join pages, remove repeated headers and repair missing separators.
  • After: an HTTP-backed test pipes multiline, quoted CSV pages into one file. Tests also cover lazy fetching, early stopping, empty pages and failures.
  • All 114 tests, generation, lint, typecheck, claims check and build pass locally.

Merge Danger

Two-way. Additive SDK method; existing transport and page limits remain unchanged.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant