Hacker News·4 min read·hard

ClickHouse C – Talk to ClickHouse using its native binary protocol

S
saisrirampur
ClickHouse C – Talk to ClickHouse using its native binary protocol
✦AI Summary

ClickHouse C is a header-only C client library for the ClickHouse native binary protocol. It allows for efficient data decoding without requiring TCP or compression dependencies.

Why it matters

Provides developers with a lightweight, high-performance tool for integrating ClickHouse data processing into C-based systems.

✦Dive DeeperCreate a free account to unlock

Header-only C client for the ClickHouse Native wire format — the Native Protocol over TCP carrying Native Format blocks. One core header, plus optional follow-up headers for TCP, compression, codecs, and I/O backends.

Designed for embedding inside PostgreSQL extensions ( palloc arena, longjmp ) but with no PG-specific code. Including clickhouse.h alone gives a pure block decoder over caller-supplied chc_io , usable for reading clickhouse-local 's FORMAT Native from a pipe with no TCP, no compression, no link-time deps beyond libc.

Decode a clickhouse local query without TCP or compression.

Continue reading on Headlinne

Create a free account to read the full article.

Read full article →
technology
✦

Get smarter about the news

Sign up free for a feed built around what you actually care about, Dive Deeper research on any story, and the full text of every article.

Create free account

Already have an account? Sign in