@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";Functions
Section titled “Functions”| 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. |
Interfaces
Section titled “Interfaces”| Name | Summary |
|---|---|
ClickHouseAnalyticsOptions |
Options for createClickHouseAnalytics. |
ClickHouseAnalyticsSink |
The ClickHouse sink; deleteLink and events are always available. |
ClickHouseSchemaOptions |
Options for clickhouseSchema. |