Hacker News
databow: a Rust CLI to query any database with an ADBC driver
ComputerGuru
|next
[-]
Seems like a columnar version of ODBC, for OLAP instead of OLTP.
password4321
|next
|previous
[-]
Reviewing the issues and PRs there provides a clue what to expect as this project matures.
whinvik
|next
|previous
[-]
f311a
|root
|parent
|next
[-]
Coincidentally, I wrote an article today on how I use it for similar scenarios. It can fetch from S3, multiple databases at once, and so on.
And you get all the benefits of a database when you need to join or postprocess data from multiple sources.
freakynit
|root
|parent
|next
|previous
[-]
With databow, the query still runs on the target database (unline duckdb), but you get one consistent CLI across different databases: connection profiles, output formats, history, scripting, and import/export behavior.
This is genuinely useful for humans (For example, I regularly juggle 6-7 different database, oltp, olap, search and key-value mixed), and even more useful for AI coding agents, because they don't have to learn and juggle a different CLI and set of flags for every database.
bunsenhoneydew
|root
|parent
|next
|previous
[-]
I’ll still check this out though.
wodenokoto
|next
|previous
[-]
Another nice feature one would want from such a program is of course auto complete.
adonese
|root
|parent
|next
[-]
select (up arrow)
will loop through your psql history for commands that started with e.g., . The challenging part is in wide tables and or table with large data. Less is awkward usually so using pspg made it less awkward.
I tried also to with help of ai, to write a plugin for sublime that fits my flow. It worked well but I think I'm more used to psql.
[1]
~/.inputrc
$if psql "\e[A": history-search-backward "\e[B": history-search-forward $endif
edit: formatting
ifh-hn
|next
|previous
[-]
aleda145
|next
|previous
[-]
I'm sure SREs will really love me doing expensive adhoc queries against production postgres /s
I've yet to work in enterprises big enough to have multi cloud data warehouses though, maybe it's more useful in that setting?