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/mailru/go-clickhouse
Connects to ClickHouse and retrieves the server version.
package main
import (
"database/sql"
"fmt"
_ "github.com/mailru/go-clickhouse"
)
func main() {
db, err := sql.Open("clickhouse", "http://localhost:8123/default")
if err != nil {
panic(err)
}
defer db.Close()
var version string
db.QueryRow("SELECT version()").Scan(&version)
fmt.Println(version)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
1.8.0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.