Features
Saved Scripts & History

Saved Scripts & History

Zentro keeps two kinds of query persistence: Saved Scripts (explicitly saved, named, reusable) and Query History (automatic, per-session).

Saved Scripts

Saving a Query

With a query in the editor, press Ctrl+S or click Save Script in the toolbar. Give it a name — it's saved to the current project.

Saved scripts are:

  • Stored locally on your machine (not synced to any cloud)
  • Scoped to the project they were saved in
  • Editable — open one, make changes, save again with Ctrl+S

Finding Saved Scripts

The Saved Scripts panel is in the left sidebar, below the Schema Explorer. Scripts are listed in alphabetical order with a search box at the top.

Double-click a script to open it in a new editor tab.

Organizing Scripts

Right-clicking a saved script gives you:

  • Rename
  • Duplicate — useful for creating variations of a base query
  • Delete

There are no folders currently. Use descriptive names to keep scripts organized (e.g. users_by_signup_date, active_subscriptions_summary).

Query History

Zentro automatically records every query you run, per connection. The History panel is accessible from the bottom toolbar.

History Entries

Each entry shows:

  • The SQL text (truncated in the list view)
  • Timestamp
  • Execution time
  • Whether it succeeded or errored

Using History

Click any history entry to load the SQL into the editor. From there you can modify and re-run it, or save it as a named script.

Clearing History

History is stored locally. You can clear it per-connection from the History panel settings menu. History is not automatically purged — it accumulates indefinitely until you clear it.

Search Across Scripts

Press Ctrl+Shift+F to open a global search that searches both saved script names and their SQL content. Results show the matching snippet with the keyword highlighted.