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.1.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.1-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for harlequin_clickhouse_adapter-0.1.1.tar.gz
Algorithm Hash digest
SHA256 90147337ad4211e3b01e1fc87b97d9bbf8429555fae8ea9ef1a9b7be50b4ae13
MD5 b92493a22a2230f20e62dc133dfdd7c6
BLAKE2b-256 419df90fc551a01ce27751f4653d0b37267e8c894ca6ce2a2b1e839976803451

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for harlequin_clickhouse_adapter-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ca14a60a41cf4a3282eca6dcfd4cde5771683d657e0f37ad35bc8ac95651187f
MD5 bc512ecee2987e242a4c3bd260911bcd
BLAKE2b-256 1816f521b2f1ca24b7c52febae869412890ae2ce20fe6ed0900831e066bc11d2

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