Source: blog.jetbrains.com

Query Book in DataGrip
People often ask us: – Do you have a query book? I want to store them and to be able to call any of them when I want.

They include a mechanism for variables, so your template can be more generic than the query you are going to run.

This is how you run the query when you need it: The file can only be attached to one session, so if you need to switch sessions or data sources, please do so manually.

There is no need to switch sessions or data sources every time you run the query: it is set for the file, which is to say, for the query.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners