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

Using pip:

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for harlequin_clickhouse_adapter-0.1.2.tar.gz
Algorithm Hash digest
SHA256 329fd652ad506074d784eeba52bbd7dd11ae5fd9d69260de00806cbcbfabc733
MD5 c8f206e8fa9d645c07b5f86e0c3c93e0
BLAKE2b-256 15bb1fee49dd087f5ea4fb241080a1b8175e1a7f9033ff76a43b8323284aba60

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for harlequin_clickhouse_adapter-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a7da3a4b1032ac8859c40c492ab23dcba2119521923c8986dac5844861d40440
MD5 6fc84697c663315b45535adf7dce2967
BLAKE2b-256 fcf75b2c8864b6b93e694774c9b7e91db2b3253d56e153f6ab373eed2c975bbc

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