Skip to main content

A Harlequin adapter for ClickHouse.

Project description

harlequin-clickhouse-adapter

A ClickHouse adapter for Harlequin built on clickhouse-driver.

Installation

Using uv:

uv pip install harlequin-clickhouse-adapter

From source:

uv sync
uv pip install -e .

Usage

Connect with a URL:

harlequin clickhouse clickhouse://user:password@localhost:9000/default

Connect with explicit options:

harlequin clickhouse \
  --host localhost \
  --port 9000 \
  --user default \
  --database default

Or via positional connection tokens (host, port, database, user, password):

harlequin clickhouse localhost 9000 default default secret

TLS and compression

harlequin clickhouse \
  --host ch.example.com \
  --port 9440 \
  --secure \
  --ca-cert /path/to/ca.pem \
  --compression

ClickHouse settings

Repeat --setting for query-level settings:

harlequin clickhouse \
  --host localhost \
  --setting max_threads=8 \
  --setting max_memory_usage=10000000000

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

harlequin_clickhouse_adapter-0.1.0.tar.gz (174.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

harlequin_clickhouse_adapter-0.1.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file harlequin_clickhouse_adapter-0.1.0.tar.gz.

File metadata

File hashes

Hashes for harlequin_clickhouse_adapter-0.1.0.tar.gz
Algorithm Hash digest
SHA256 49180c9e5e9eca391e33d06f508d3241fd3a4b71e8000240686af18e29d57f19
MD5 d6e6993098d210e4fbb3b78def14334c
BLAKE2b-256 169be6cc4b95207f059c8e4fe28b0ab5cb410f1be2e4a9316e818177bf4d811a

See more details on using hashes here.

File details

Details for the file harlequin_clickhouse_adapter-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for harlequin_clickhouse_adapter-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 738edf7cb97ef60bc72405d3fed16bdabecba31a303f4108117b07ca4bc730d8
MD5 175ba787a591e1e951e331e28c62cf09
BLAKE2b-256 243466987d007a22c1b3c0897a94fdc17f9a7247d78007dc0be367cab20698dd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page