{"repo":"ClickHouse/ch-go","free":true,"listed":false,"github":"https://github.com/ClickHouse/ch-go","clone":"git clone https://github.com/ClickHouse/ch-go.git","description":"Low-level Go Client for ClickHouse","language":"Go","stars":426,"topics":["clickhouse","driver","golang","go","binary","protocol"],"license":"Apache-2.0","category":"databases-storage","readme_excerpt":"ch Low level TCP ClickHouse client and protocol implementation in Go. Designed for very fast data block streaming with low network, cpu and memory overhead. NB: No pooling, reconnects and not goroutine-safe by default, only single connection. Use clickhouse-go for high-level database/sql -compatible client, pooling for ch-go is available as chpool package. Feedback Benchmarks Protocol reference ClickHouse is an open-source, high performance columnar OLAP database management system for real-time analytics using SQL. Example Results To stream query results, set Result and OnResult fields of Query. The OnResult will be called after Result is filled with received data block. The OnResult is optional, but query will fail if more than single block is received, so it is ok to solely set the Result if only one row is expected. Automatic result inference Single result with column name inference Server-side query parameters ClickHouse server-side query parameters use typed placeholders in the form {name:Type} . The query and parameter values are sent separately, so values are not interpolated into the SQL text. They require ClickHouse 22.8 or later. Use ch.Parameters to build Query.Parameters : String values and escape sequences ch.Parameters formats each value and encloses it in single quotes. ClickHouse first decodes that quoted value and then parses it using the placeholder's declared type. A backslash escape must therefore survive two ClickHouse parsing steps, in addition to Go's o","default_branch":null,"files":null,"tree":[],"storefront":"/r/ClickHouse","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ClickHouse/ch-go/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}