Saved Queries
Organize, save, and reuse SQL queries in the Query Library.
Query Library
The Query Library is a centralized repository where you can save, organize, and share SQL queries with your team. Each saved query can be reused in reports, dashboards, and workflows.
Save a query
- Write or generate your SQL query in the editor.
- Run it to verify it returns the expected results.
- Click "Save" and assign a descriptive name.
- Optionally, organize the query into a folder.
Organize into folders
You can create folders to organize your queries by topic, project, or team. This makes it easy to find queries quickly when you have many saved.
Permissions
Administrators can configure role-based permissions for the Query Library: who can create, edit, delete, and run queries. This allows giving read-only access to users who need to view data without the risk of modifying critical queries.
Execution history
Every time a query is executed, the platform records who ran it, when, and how long it took. This history is useful for auditing data usage and optimizing slow queries.