Skip to content

Version control for saved queries #2505

Closed

Description

@datlechin

Problem

Saved queries have no history. An edit overwrites what was there, and there is no way to see what a query looked like last week or who changed it. A linked SQL folder can sit inside a git repo, but TablePro knows nothing about that and offers nothing on top of it.

Proposed solution

  • For a linked SQL folder inside a git working tree: show per-file status in the sidebar (modified, untracked, staged), a diff against HEAD, and revert.
  • History for one file, opening a past version in a read-only tab.
  • Leave committing and pushing to a real git client. The value here is seeing that a query changed and getting the old one back, not reimplementing git.
  • For queries stored in sql_favorites.db, keep the last N versions of each and offer the same revert.

Alternatives considered

Keep every query in a repo and edit it in an editor instead.

Related database type

N/A / General

Activity

  1. added
    enhancement
    on Aug 26, 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