DBeaver is probably the most highly effective open-source SQL IDE, however there are a number of options individuals don’t find out about. On this put up, I’ll share with you many options to hurry up your workflow, with zero fluff.
I’ve discovered these as I’m at present digging deeper into the instruments I exploit day by day, beginning with Dbeaver. In a future put up, I’ll examine the workflow between DBeaver versus constructing your SQL improvement surroundings on VSCode (or Cursor). In the event you’re fascinated about that, make sure to observe my publications!
At the moment, although, the main target is on studying the cool options of DBeaver. Let’s get began.
The Command Palette
This is among the strongest but hidden options in DBeaver. Perhaps individuals overlook it as a result of it’s not referred to as a “Command Palette”. You’ll be able to open it with CMD + 3 (Mac) or CTRL + 3 (Home windows).

From right here, you possibly can entry principally any motion within the IDE. I largely use it for:
- Switching between Sql scripts.
- Navigating to particular settings.
- Rapidly accessing actions like Export Outcomes, Refresh Schema, Open Templates, Rename File, and many others.
(Formally, this function in DBeaver is known as “Discover Actions.”)
Customized SQL formatter
Do you know you possibly can simply arrange a distinct formatter in DBeaver? I’m personally not a fan of the default formatting, and since I primarily use PostgreSQL, I favor pg_formatter.
Let me present you the way it works to arrange pg_formatter, however needless to say the method will probably be comparable for any SQL formatter that you would be able to name by way of the terminal.
# Set up PG Formatter
brew set up pgformatter
# Discover the place this system is situated.
# In my case: decide/homebrew/bin/pg_format
which pg_format
Subsequent, go to Preferences → Editors → SQL Editor → Formatting, choose an “Exterior Formatter,” after which paste the trail to your required formatter.
💡 Or you possibly can merely open the command palette and seek for “Formatting”.

Develop columns on SELECT
Typically, you would possibly want to pick out most columns from a desk, excluding just some. DBeaver makes this simpler by increasing your SELECT * into specific column names.
You are able to do this with the CTRL + Area hotkey, each on Mac or on Home windows. This won’t work you probably have it certain to a different system shortcut, by which case you possibly can lookup for “Content material Help” within the command palette.

Rapidly discover column statistics
DBeaver has a bunch of options to hurry up your evaluation. One in every of them that I exploit regularly is the “Calc tab”, situated to the correct of your question outcomes. It enables you to rapidly get the details about columns in your question outcomes.
Here’s what you are able to do with it:
- Discover the quantity of distinctive and non-null values of categorical columns.
- Get min, max, imply, median, and many others., of numerical columns.

Very useful for rapidly understanding your dataset!
Advert-hoc teams
Equally to the Calc tab, the “Groupings tab” enables you to rapidly create group-by queries with out writing SQL manually.
What you are able to do with it:
- Rapidly rely occurrences of values.
- Add a number of aggregations.

Though this one is fairly good for easy aggregations, I discover it a bit underwhelming as there isn’t any method to rely distinctive values, as I do within the GIF above, with out having to manually write the metric operate.
SQL templates
SQL Templates are extraordinarily highly effective, though I admit I don’t use them as typically as I ought to. Templates prevent from repeatedly writing frequent expressions.
You’ll be able to see the built-in templates by opening the command palette and looking for “Templates”. You will note shortcuts for:
SELECT * FROM {desk}
SELECT * FROM {desk} WHERE {col} = {worth}
- And others, like deciding on and ordering, counting by teams, and many others.
All that you must do is to jot down the shorthand for the question and press tab:

You can too create your individual templates, which isn’t exhausting should you simply copy the present ones and adapt them.
Superior copy ideas
You would possibly already know DBeaver has intensive knowledge export choices. Nevertheless, the usual export wizard can really feel a bit overwhelming, because it exhibits you tons of configurations, even while you simply wish to rapidly export a CSV.
A faster manner is deciding on knowledge within the Outcomes tab, right-clicking, and selecting “Superior Copy”. By doing this, you possibly can copy your knowledge in lots of codecs like CSV, JSON, Markdown, TXT, and even SQL Insert Statements.

I discover this one tremendous useful, particularly after I have to rapidly ship knowledge to a teammate.
A bonus tip is that you would be able to copy this knowledge to TSV, which will get correctly acknowledged by Excel and Google Sheets into their correct cells! For this one although, you need to be double superior, in accordance with DBeaver 😅

Conclusions
I really like DBeaver as a SQL IDE. It’s extremely highly effective and the interface could be very clear. It’s actually mindblowing that this instrument is free and open-source. In the event you haven’t tried it but, I like to recommend it so much!
I haven’t seen that many individuals speaking about a few of its nicest options and tips, and most ideas I’ve shared got here from simply utilizing the software program. There may be in all probability so much that I missed, particularly in relation to Plugins, which I haven’t used a lot.
I do know I went by means of the entire ideas very quick, so should you’re unsure, be at liberty to achieve out. Additionally, you probably have extra workflow ideas, I’d love to listen to about them!
I hope you discovered one thing new!
In the event you’re inquisitive about different ideas that didn’t make it into this put up, or take pleasure in studying about normal knowledge subjects, subscribe to my free e-newsletter on Substack. I publish each time I’ve one thing genuinely attention-grabbing to share.
Need to join straight or have questions? Attain out anytime at mtrentz.com.
All photos and animations, until in any other case famous, are by the creator