Query Snippets
Save, organize and reuse queries across all your connections.
Saving a Snippet
Wrote a query you'll need again? Click Save snippet in the editor toolbar, give it a name, and it lands in your snippet library. Snippets can hold anything the editor can — mongo shell scripts, SQL, AQL — for any engine.
How to: save a query and reuse it tomorrow
- With the query in the editor, click Save snippet in the toolbar
- Give it a name that states the intent — "orders: stuck in pending"
- Tomorrow: open the Insert snippet dropdown in the editor toolbar, pick it, run it
- Forgot to save? Open the History panel — every run is recorded and re-runnable anyway
Using Snippets
The Insert snippet dropdown in the editor toolbar inserts a saved snippet into the current script. The Snippets panel manages the library: search, edit, copy and delete.
Examples Worth Saving
-- Postgres: table sizes at a glance
SELECT relname, pg_size_pretty(pg_total_relation_size(relid)) AS size
FROM pg_catalog.pg_statio_user_tables
ORDER BY pg_total_relation_size(relid) DESC; // MongoDB: recently changed documents
db.getCollection("orders").find({
orderedAt: { $gte: ISODate("2026-08-01") }
}).sort({ orderedAt: -1 }) -- ClickHouse: top pages by hits
SELECT url, count() AS hits FROM page_events
GROUP BY url ORDER BY hits DESC LIMIT 20 Query History
Separately from snippets, every script you run is saved to your history automatically — searchable and re-runnable from the History panel. Promote anything you keep coming back to into a named snippet.
Where They Live
Snippets and history are stored locally in Sutido's SQLite database under
%APPDATA%/sutido — nothing is synced to any cloud.
Tip: Name snippets by intent, not syntax — "orders: stuck in pending" beats "find query 3" six months from now.