db.go 328 B

123456789101112131415
  1. package service
  2. import (
  3. "context"
  4. "github.com/ClickHouse/clickhouse-go/v2/lib/driver"
  5. )
  6. type Clickhouse interface {
  7. Service
  8. Ping(context.Context) error
  9. Exec(context.Context, string, ...any) error
  10. Query(context.Context, string, ...any) (driver.Rows, error)
  11. Batch(context.Context, string, bool) (driver.Batch, error)
  12. }