CHouseUI
Using CHouse UIExplorer

Saved queries & history

Persist frequently used queries per connection, share them, and browse full query history.

In the app
Explorer › Saved queries/explorer

Saved queries persist the SQL your team reuses; history keeps every execution findable. Both are per-connection aware.

Saved queries

Manage under the workspace's saved-queries panel (saved_queries:* permissions):

ActionPermission
Viewsaved_queries:view
Createsaved_queries:create
Updatesaved_queries:update
Deletesaved_queries:delete
Sharesaved_queries:share
  • Queries are organized by connection — a saved query belongs to the cluster it was written for
  • Sharing exposes a personal query to the team (subject to data access rules at run time)
  • Saved queries surface in the command palette for one-keystroke recall

Query history

Every execution in the editor is recorded:

  • Own history by default (query:history:view)
  • Everyone's history with query:history:view:all — for admins and reviewers
  • Entries carry SQL, timing, status and the connection used; re-run with one click

History complements the audit log: history is workflow-oriented (re-run, iterate), audit is governance-oriented (who did what).

Patterns that work well

PatternSetup
Team playbookA shared set of saved queries per cluster (connect + share)
Recurring extractionSave the query, then promote it to a scheduled job
Parameterized reportsCombine saved queries with Redash-style dashboards (see By Redash)
Fast recallCmd/Ctrl+K → type a fragment of the name — see Command palette

Tip: Saved queries still pass data access rules at run time — a shared query can exist for everyone but only return data for users whose rules allow the tables it touches.

Edit this page on GitHub ↗