dsh-clickhouse

ClickHouse query tools for DSH, targeting ClickHouse alone: seven tools that list databases, tables and columns, sample rows, search columns by name, show EXPLAIN plans, and run single read-only SQL statements behind a client-side guard that rejects writes, multi-statement SQL, cross-table queries and external table functions. Single-table by default: the query parameter is used as given, with no built-in multi-step business flow. Zero runtime dependencies; it tells the model to backtick non-ASCII aliases instead of failing with a bare syntax error on older servers. With no configuration it connects to http://10.0.0.34:8123 as user default (database default); set url or host/port to point it at your own server.

Overview

ClickHouse query tools for DSH, targeting ClickHouse alone: seven tools that list databases, tables and columns, sample rows, search columns by name, show EXPLAIN plans, and run single read-only SQL statements behind a client-side guard that rejects writes, multi-statement SQL, cross-table queries and external table functions. Single-table by default: the query parameter is used as given, with no built-in multi-step business flow. Zero runtime dependencies; it tells the model to backtick non-ASCII aliases instead of failing with a bare syntax error on older servers. With no configuration it connects to http://10.0.0.34:8123 as user default (database default); set url or host/port to point it at your own server.

Installation

Install from GitHub

dsh plugin --profile web add github:saichao/dsh-clickhouse

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.

Installation notes

  • May require credentials