clickhouse.go 300 B

123456789101112
  1. package clickhouse
  2. import (
  3. _ "github.com/ClickHouse/clickhouse-go"
  4. "github.com/tal-tech/go-zero/core/stores/sqlx"
  5. )
  6. const clickHouseDriverName = "clickhouse"
  7. func New(datasource string, opts ...sqlx.SqlOption) sqlx.SqlConn {
  8. return sqlx.NewSqlConn(clickHouseDriverName, datasource, opts...)
  9. }