Registry / database / clickhouse-clickhouse-go

clickhouse-clickhouse-go

JSON →
library1.5.4gogounverified

A Go client library for connecting to and interacting with ClickHouse databases.

go get github.com/ClickHouse/clickhouse-go
INSTALL
IMPORT
SIG · CLICKHOUSE-CLICKHO
C
clickhouse-clickhouse-go
databasegov1.5.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

clickhouse
github.com/ClickHouse/clickhouse-go

Opens a direct TCP connection to a ClickHouse server.

package main import ( "fmt" "github.com/ClickHouse/clickhouse-go" ) func main() { conn, err := clickhouse.OpenDirect("tcp://localhost:9000?debug=true") if err != nil { panic(err) } defer conn.Close() fmt.Println("Connected to ClickHouse") }
Debug
Known issues
gotchaThis is the v1 client; the v2 client (github.com/ClickHouse/clickhouse-go/v2) is now recommended for new projects.
fix
Use github.com/ClickHouse/clickhouse-go/v2 for better performance and features.
affects: >=1.0.0
Upgrade
Version history
1.5.4latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
10
OpenAI (training)
1
Resources
clickhouse-clickhouse-go — go get clickhouse-clickhouse-go · libregistry