Registry /
database / clickhouse-clickhouse-go-v2
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/v2
Opens a connection to a ClickHouse server.
package main
import (
"context"
"fmt"
"github.com/ClickHouse/clickhouse-go/v2"
)
func main() {
conn, err := clickhouse.Open(&clickhouse.Options{
Addr: []string{"localhost:9000"},
})
if err != nil {
panic(err)
}
defer conn.Close()
fmt.Println("Connected to ClickHouse")
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
2.46.0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.