Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions windows/browsing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,16 @@ Which objects show their source depends on the database:
| SQLite | Triggers |
| ClickHouse | Functions |

## Keep fewer results from a script

A script whose statements return rows lists each result in the picker above the grid. To keep only the newest, set **Settings > Queries > Results kept per run**.

| Setting | Default | Choices |
|---|---|---|
| Results kept per run | No limit | No limit, 10, 20, 50, 100, 200, 500, 1,000 |

Earlier results are dropped as the script runs, and the status line says how many: `Rows: 1 · 12 ms · 990 earlier results were dropped.` A statement that returns no rows never counts toward the limit. A change applies from the next run.

## Export results

Choose **File > Export results** or press `Ctrl+Shift+E`.
Expand Down
10 changes: 10 additions & 0 deletions windows/data-grid.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ A table opened from the object tree shows one page of rows, 1,000 by default. Ed
<img className="hidden dark:block" src="/images/windows-data-grid-dark.png" alt="Artist table with the first name underlined on a yellow fill and row 25 struck through on red" />
</Frame>

## Count a large table

A table counts its rows when it opens, so **Last page** and **Go to page** know where the end is. A table the database estimates at more rows than **Settings > Pagination > Count rows if estimate less than** skips that count: the status reads `1-1,000 of about 2,000,000 rows`, and **Count rows** in the toolbar counts it on request.

| Setting | Default | Choices |
|---|---|---|
| Count rows if estimate less than | 100,000 | 1,000; 10,000; 100,000; 1,000,000; Always count |

A table whose database keeps no estimate is always counted.

## Edit rows

Editing works in a table tab on a table with a primary key, on a connection whose Safe Mode is not Read only. A saved row's key, and every column the server fills, stay as they are.
Expand Down
Loading