Skip to content

Query History

Query History

DBeagle records recent query executions internally. Today that history is mainly used to power inline feedback in the editor rather than a standalone history browser.

The current history store keeps the last 50 execution entries.

What gets recorded

Each history entry captures:

FieldDescription
ConnectionWhich database connection was used
DocumentWhich file or scratch the query ran from
SelectionWhether the run used a text selection
StatementsNumber of statements in that execution
Statement TypesThe statement types DBeagle detected
OutcomeSuccess, cancelled, or failed
TimingStart time, completion time, and total execution time when available
Row CountTotal rows materialized across statements
ErrorError message when the run fails

Where you see it today

Current user-facing history surfaces include:

  • Gutter annotations for recent statement runs
  • Code lenses that let you jump back to the Results panel
  • Result details such as query id, statement position, and rendered SQL

There is not yet a dedicated history explorer UI in the current release.

What it is useful for today

  • Quick feedback on which statement last succeeded, failed, or was cancelled
  • Fast access back to the DBeagle Results panel from the editor
  • Future-facing groundwork for richer history features later

Retention behavior

The display is short and practical:

  • New entries push older ones out once the 50 entry limit is reached.
  • Clearing extension storage or resetting VS Code state removes the stored history.

Not shipped yet

  • A full query history browser
  • Search and filtering over past executions
  • Re-running directly from a history list