Skip to content

Fix multi-statement result export - #628

Open
DhruvShah-Dev wants to merge 2 commits into
TabularisDB:mainfrom
DhruvShah-Dev:fix/export-multistatement-results
Open

Fix multi-statement result export#628
DhruvShah-Dev wants to merge 2 commits into
TabularisDB:mainfrom
DhruvShah-Dev:fix/export-multistatement-results

Conversation

@DhruvShah-Dev

Copy link
Copy Markdown
Contributor

Summary

  • enable export for active multi-statement result tabs
  • export loaded multi-statement result rows directly so temp-table scripts can be saved without rerunning on a new connection
  • select the first result-bearing statement after batch execution and add formatter coverage for CSV, JSON, and Markdown exports

Fixes #627

Validation

  • pnpm.cmd exec vitest run tests/utils/resultExport.test.ts tests/utils/multiResult.test.ts
  • pnpm.cmd typecheck
  • pnpm.cmd lint

@DhruvShah-Dev
DhruvShah-Dev marked this pull request as ready for review August 13, 2026 00:40
@kilo-code-bot

kilo-code-bot Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (3 files)
  • src/pages/Editor.tsx
  • src/utils/resultExport.ts
  • tests/utils/resultExport.test.ts

Reviewed by glm-5.2 · Input: 49.1K · Output: 15.2K · Cached: 336.4K

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.

[Bug]: Export button is disabled when executing multiple statements (e.g. CREATE TEMP TABLE)

2 participants