clickhouse.go 324 B

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