Skip to content

@xtandard/links/analytics/clickhouse

ClickHouse analytics sink over the HTTP interface (fetch only, no peer dependencies): JSONEachRow inserts, parameter-bound queries, exact uniques, and the clickhouseSchema() DDL helper.

import { … } from "@xtandard/links/analytics/clickhouse";
Name Summary
clickhouseSchema The CREATE TABLE IF NOT EXISTS statement for the events table: one row per event, partitioned by month, ordered by (tenant, at).
createClickHouseAnalytics Create a ClickHouse-backed AnalyticsSink.
Name Summary
ClickHouseAnalyticsOptions Options for createClickHouseAnalytics.
ClickHouseAnalyticsSink The ClickHouse sink; deleteLink and events are always available.
ClickHouseSchemaOptions Options for clickhouseSchema.