dbq — Read-only SQL — openbash
Read-only SQL against the account's connected database, with results as CSV on stdout.
dbq
dbq is a command on the openbash shell, reachable over HTTP, SSH and MCP with one key. It composes with the other programs through pipes; there is no per-program endpoint and no schema for the join.
dbq --limit 5 'SELECT id, name FROM customers ORDER BY created_at DESC'
help
dbq: read-only SQL against the connected database. USAGE dbq [--limit N] 'SELECT ...' RETURNS CSV on stdout, header row first, so it pipes straight into `csv` or `awk`. READ-ONLY Reads only. There is no statement here that can write, and that is a property of the tool rather than a convention: a session cannot be talked into an UPDATE. DOES NOT COVER Databases the account has not connected. Schema discovery: ask the database for it in SQL.