Skip to content

feat: add JSON and Excel export alongside CSV in SQL editor - #100

Merged
aalvaropc merged 1 commit into
mainfrom
feat/export-json-excel
Apr 11, 2026
Merged

feat: add JSON and Excel export alongside CSV in SQL editor#100
aalvaropc merged 1 commit into
mainfrom
feat/export-json-excel

Conversation

@aalvaropc

@aalvaropc aalvaropc commented Apr 11, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add elixlsx dependency for Excel (.xlsx) generation
  • New export actions: POST /exports/json (JSON array of objects) and POST /exports/xlsx (Excel workbook)
  • Export button in SQL editor toolbar replaced with dropdown menu: CSV, JSON, Excel
  • Refactored ExportController with with_result/4 helper to eliminate code duplication
  • JSON export maps each row to {column: value} objects
  • Excel export handles Decimal, boolean, nil, and numeric types as proper cell values

Test plan

  • mix precommit — 638 tests, 0 failures
  • Manual: run a query, export as JSON — verify valid JSON array; export as Excel — verify .xlsx opens correctly

@aalvaropc
aalvaropc merged commit 9daeedc into main Apr 11, 2026
2 checks passed
@aalvaropc
aalvaropc deleted the feat/export-json-excel branch April 11, 2026 20:17
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