I haven't used (or heard of) dbeaver but took a quick look at it and I have tried other SQL tools that seem similar. Never really felt they gave me much.
I like keeping my tools very simple.
All the autocomplete and other smart editor features quickly outrun the speed at which I can think about what I'm doing, so I find them of limited use.
For the former - if you're willing to completely alter your perspective here, you may discover something unusually good. To understand the data, I find myself more often reaching for a Clojure REPL with basic odbc lib dependency. Clojure, at times may feel like hands-down the best tool for dealing with certain types of data. It really is great for quickly retrieving/grouping/sorting/slicing/dicing - these days I use it for exploring JSON results from APIs (that I automatically convert to EDN), or for dealing with DB data.
And you can perfectly manage that in org-source blocks too - I typically keep at least one Clojure REPL instance running in Emacs - I'd connect to it and go like:
(-> (select :*)
(from :users)
(where [:= :status "active"])
(limit 5)
(group-by :user_id) ...)
For someone with no clue, all these parens may feel like annoyance, for me, they are the best way to deal with structured expressions - composing and writing them is far more satisfactory than even writing plain sql. Although, sure - sql can be a mind-blowing, great tool on itself.Sadly the things where the extra tooling is missed is more in larger databases where I’m either rebuilding or restructuring an existing database or writing more complex queries to help with this and I want to do it all in the database. Hence autocomplete and general knowledge of the schema being built in is nice.
I have done that years ago and I just can't imagine my life without this feature. I never even try to type directly, anything longer than three words - in Slack, Browser, Teams, Outlook, whatever. There are packages like emacs-everywhere, but I don't use that. My technique is simple and I usually get it to work on every WM and system I use. It basically simulates Cmd|Ctrl+A & Ctrl+X, and via emacsclient opens a dedicated buffer and sends the text+PID. When done, pressing a key copypastes the text back into the app of the PID.
I can't recommend that enough - being able to use all the tools you have in your editor - completions, spellchecking, thesaurus, etymology lookup, translation and dictionaries, search of all kinds, etc., is absolute and pure joy.
I'm not using it anymore though. I moved to Hyprland. I built my config in Clojure, but I need to fix a few things before making the repo public.