New header-only C library implements ClickHouse's native binary protocol
A developer has released ClickHouse C, a header-only client library written in C11 that decodes the ClickHouse Native wire format, including both the TCP-based Native Protocol and standalone Native Format blocks. The core header works as a pure block decoder with no TCP or compression dependencies, with optional add-on headers providing TCP, compression, codec, and I/O backend support.
GoKawiil's interpretation of the reporting above, not reported fact.
The library's design, built around a caller-supplied allocator and no PostgreSQL-specific code despite being intended for embedding in PostgreSQL extensions, suggests it aims to be portable across different C host environments. Its minimal-dependency core, usable for reading clickhouse-local output over a pipe without networking, could make it easier to integrate ClickHouse data reading into low-level or resource-constrained systems.
- ClickHouse C is a header-only C11 library for decoding the ClickHouse Native binary protocol and format
- The core header requires no TCP or compression support, only libc, for decoding local Native-format streams
- Optional headers add TCP, compression, codecs, and I/O backends for fuller protocol support
Source: github.com, 2026-10-11
Published there as: “ClickHouse C – Talk to ClickHouse using its native binary protocol”
Read the original report → The summary and analysis above are GoKawiil's own, written from reporting by the source above. Facts and quotes belong to the original publisher.