Skip to content

feat: data export — CSV/Excel for Postgres/SQLite, JSON for MongoDB - #11

Merged
pavi2410 merged 3 commits into
mainfrom
cursor/data-export-csv-excel-json
Jun 3, 2026
Merged

feat: data export — CSV/Excel for Postgres/SQLite, JSON for MongoDB#11
pavi2410 merged 3 commits into
mainfrom
cursor/data-export-csv-excel-json

Conversation

@pavi2410

@pavi2410 pavi2410 commented Jun 3, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds CSV and Excel (.xlsx) export to all Postgres and SQLite query editors and data viewers via an Export toolbar popover
  • Adds JSON export to MongoDB document viewer and pipeline builder
  • New widgets/export.rs module handles serialisation (csv + rust_xlsxwriter + serde_json) and the native save-file dialog (rfd)
  • After a successful save, a success toast fires with two explicit action buttons: Open file and Show in Finder / Show in Explorer / Open Folder
  • No implicit click-to-open on the notification body; autohide is disabled so the user has time to act

Test plan

  • Run a query in the Postgres/SQLite query editor → click Export → save as CSV and verify the file opens correctly in a spreadsheet app
  • Save as Excel (.xlsx) and verify bold headers + data rows
  • Browse a table in the data viewer → export CSV/Excel
  • Run a MongoDB aggregation pipeline → export JSON and verify array-of-objects structure with null for missing/NULL values
  • Verify the success toast appears after each export with both Open file and Show in Finder buttons working correctly
  • Cancel the save dialog → confirm no toast is shown

Made with Cursor

pavi2410 and others added 2 commits June 3, 2026 08:58
…ngoDB

Co-authored-by: Cursor <cursoragent@cursor.com>
- save_bytes now returns Option<PathBuf> (Some on success, None on cancel/error)
- push_export_success shows a success notification with two explicit action
  buttons: "Open file" and "Show in Finder/Explorer/Open Folder"
- Notification body is inert (no implicit click-to-open); autohide disabled
- All 6 export call sites updated to handle the returned path and fire the toast

Co-authored-by: Cursor <cursoragent@cursor.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 3, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
based 959ed5e Commit Preview URL

Branch Preview URL
Jun 03 2026, 03:51 AM

@pavi2410
pavi2410 marked this pull request as ready for review June 3, 2026 03:48
@pavi2410
pavi2410 merged commit 0fcaa8a into main Jun 3, 2026
2 checks passed
@pavi2410
pavi2410 deleted the cursor/data-export-csv-excel-json branch June 3, 2026 04:08
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