Metadata-Version: 2.5
Name: sanka-connector-clickhouse
Version: 0.1.0a10
Summary: ClickHouse connector for the Sanka migration runtime
Project-URL: Repository, https://github.com/sankaHQ/sanka-connectors
Project-URL: Issues, https://github.com/sankaHQ/sanka-connectors/issues
Author: Sanka, Inc.
License-Expression: Apache-2.0
License-File: LICENSE
Requires-Python: >=3.12
Requires-Dist: clickhouse-connect>=0.8
Requires-Dist: sanka-connector-sdk==0.1.0a10
Description-Content-Type: text/markdown

# ClickHouse connector

Writes Sanka records into a ClickHouse database as a migration
**destination**: one table per target object, created on first write with
column types inferred from first-seen values and widened with `ALTER TABLE …
ADD COLUMN IF NOT EXISTS` as new fields appear. Tables whose run declares
identity fields use `ReplacingMergeTree ORDER BY (<identity columns>)`, so
re-applied migrations insert fresh versions that deduplicate at merge time;
inventory therefore counts with `SELECT count() … FINAL` — the merge-accurate
number — for verification. Connections accept `http://`, `https://`, or
`clickhouse://` URLs (the last treated as HTTP). Apache-2.0; depends only on
the `sanka-connector-sdk` interface and `clickhouse-connect`.
