clickhouse-sdk-patterns
Installation
SKILL.md
ClickHouse SDK Patterns
Overview
Production patterns for @clickhouse/client — typed queries, streaming inserts,
error handling, and connection lifecycle management. Start from the typed query
helper below, then drill into references/implementation.md for the streaming,
batching, and lifecycle patterns.
Prerequisites
@clickhouse/clientinstalled and authenticated (seeclickhouse-install-auth)- Node.js 18+ with a
CLICKHOUSE_HOST/CLICKHOUSE_USER/CLICKHOUSE_PASSWORDenv set - Familiarity with async/await and Node.js streams (backpressure,
drain,Readable)
Instructions
Apply the pattern that fits your workload. Steps 2–7 live in references/implementation.md with full, copy-pasteable code; the core typed-query skeleton stays here.