Skip to content

feat: report per-run results and transaction state #911

Closed

Description

@EVWorth

The backend half of #845 and #843. The frontend in #908 already reads both fields and falls back when they are missing.

1. Results of the statements before a failure (#845)

  • QueryError (camelCase) gains completedResults: QueryResult[] | null.
  • execute_query fills it when a script stops at statement N > 0, with the results of statements 0..N-1.
  • Today those results are lost, so a script that fails on statement 3 shows only the error.

2. Transaction state after a run (#843)

  • QueryResult gains transaction: Option<TransactionState>, using the same shape apply_grid_edits already reports: "open" | "none", and None when the run isn't on a session.
  • Mirror both fields in the mock query handler (src/dev/mock/handlers/).
  • The frontend currently guesses from the statements that ran (BEGIN, COMMIT, autocommit, implicit commits). With this field the guess is no longer needed.

Use the add-tauri-command checklist: run just bindings, update the mock, and add tests. The executor change needs the integration tests on MySQL and MariaDB.

Activity

  1. added
    enhancement
    on Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions