Skip to content

Stream large database exports#222

Open
mdp28 wants to merge 1 commit into
outerbase:mainfrom
mdp28:fix-large-database-exports-59
Open

Stream large database exports#222
mdp28 wants to merge 1 commit into
outerbase:mainfrom
mdp28:fix-large-database-exports-59

Conversation

@mdp28
Copy link
Copy Markdown

@mdp28 mdp28 commented May 15, 2026

/claim #59

Summary

  • Streams CSV, JSON, and SQL dump exports instead of materializing the full export payload in memory before responding.
  • Adds shared export streaming helpers for paginated table reads, runtime yielding, CSV/SQL value formatting, safe filenames, and ReadableStream response creation.
  • Keeps export routes responsive for large tables by reading rows in pages and yielding chunks progressively.
  • Adds focused coverage for streaming helpers plus CSV/JSON/dump route behavior.

Verification

  • corepack pnpm install --frozen-lockfile --ignore-scripts
  • corepack pnpm exec vitest --run src/export
  • git diff --check

Targeted test result: 5 files passed, 34 tests passed.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant