Data grid
The data grid displays query results and table data. It has 2 modes:
- Query result mode - displaying results from editor SQL statements
- Table data mode - displaying column values from a single database table
In Table data mode the grid is editable, while in query result mode the grid is read-only.
Table data mode with a read-only connection is not editable
Reading data
Rowpilot can display any data in the grid. Large result sets and tables are loaded into the table in pages
- Result default page sizes for editor queries and table mode are configurable in
Settings → Editor & Grid - Every result grid has pagination settings for navigation
- Offset values
- Page size (or limit) value
- Current page can be reloaded using
Result ordering
- Rows in the grid can be ordered by column values - click on a column name to sort (default, asc, desc)
Table data mode: re-runs select with theorder byincludedQuery result mode: sorts values in the grid in memory
Table mode filtering
The Table data mode grid allows filtering of the data in a small inline editor where you can fill the WHERE part of the table query
Editing data
Editing works in table mode for supported databases
- Every change requires saving using
Save - Edit a cell: double-click or start typing to edit the value
- Add rows: new rows respect column defaults
- Add by clicking
Add row
- Add by clicking
- Delete rows
- Select row or rows using the checkboxes in the first column and click
Delete Selected
- Select row or rows using the checkboxes in the first column and click
- Bulk copy & paste: multiple values can be copied and pasted to multiple columns
- Paste format is
TSV
- Paste format is
- Preview Change SQL: Preview the SQL Rowpilot will generate for the data changes before the execution
Save your pending changes using Save (or Cmd/Ctrl+Enter)
- Changes go through the data source's transaction mode
- In
GuardorManualmode you'll see the generated SQL and the affected row count before anything commits
A primary key is required for editing and deleting rows
JSON cells
- Columns recognized as JSON in supported databases show as a syntax-highlighted cell
- Each cell then contains a multi-line editor with an autoformatted JSON value
Copying data
Select cells, rows or columns and open the copy menu with Cmd/Ctrl+Shift+C (or right-click on data grid):
- CSV
- TSV
- JSON
- Where: turns a single-column selection into a SQL
WHEREfragment (id IN (...))
Display
- Grid font size is adjustable; see Appearance
- For exporting the results or table data see Exports
