Export and import data
Export query results as CSV, TSV, JSON, Markdown or INSERT statements, and bulk-import a CSV file into a table.
Move data in and out of your database without writing a script.
Export results#
Use the export menu above the grid to save the current result. The formats are:
| Format | Best for |
|---|---|
| CSV | Spreadsheets and other tools. |
| TSV | Pasting into a spreadsheet; tab-separated. |
| JSON | An array of row objects for scripts and APIs. |
| Markdown | Pasting a table into docs or an issue. |
| INSERT SQL | Recreating the rows in another database. |
Exporting more than one page#
The grid loads one page at a time. When you export, RowDex asks whether to export This page only or the full result set. A full CSV export fetches the remaining pages, up to 100,000 rows. The Export CSV dialog goes further: the database engine runs the query and writes the file, so every row is exported, with options for the delimiter, how NULL is written and whether to include a header row.
Import a CSV into a table#
Open the importer
Right-click a table in the sidebar and choose Import CSV…. This is available for PostgreSQL-compatible connections.
Pick the file and format
Choose the CSV file, then set the delimiter (comma, semicolon, tab or pipe), whether the first row is a header, and how NULL is written.
Map the columns
Check that each CSV column points at the right table column. Use the preview to confirm the data looks right.
Import
The load runs inside a transaction. If any row fails, for example by breaking a constraint, the whole file is rolled back and nothing is imported.
Was this page helpful?