Files
PandeyandGitHub 7ab8f8e001 feat: rename module to SigNoz and support clickhouse-go v2.44.0 (#4)
## Why

`clickhouse-go/v2` **v2.44.0** added a new method `HasData() bool` to
the `driver.Rows` interface. SigNoz needs to upgrade to v2.44.0 (it
fixes a connection-pool slot leak — `acquire conn timeout` — introduced
in v2.43.0 via PRs #1759/#1795), but this mock's `*Rows` did not
implement `HasData()`, so it no longer satisfies `driver.Rows` and
breaks the build.

This ports the mock into a SigNoz-owned module and adds the missing
method.

## What

- Rename module path `github.com/srikanthccv/ClickHouse-go-mock` →
`github.com/SigNoz/clickhouse-go-mock` (incl. example imports).
- Bump `github.com/ClickHouse/clickhouse-go/v2` `v2.43.0` → `v2.44.0`.
- Implement `Rows.HasData()` to satisfy the v2.44.0 `driver.Rows`
interface (mirrors `Next()` semantics).
- Fix `non-constant format string in call to fmt.Errorf` vet errors
flagged by the current Go toolchain.

## Verification

- `go build ./...` ✅
- `go vet ./...` ✅
- `go test ./...` ✅
2026-05-29 23:51:54 +05:30

31 lines
1.0 KiB
AMPL

module github.com/SigNoz/clickhouse-go-mock
go 1.24.1
require (
github.com/ClickHouse/clickhouse-go/v2 v2.44.0
github.com/DATA-DOG/go-sqlmock v1.5.2
github.com/stretchr/testify v1.11.1
)
require (
github.com/ClickHouse/ch-go v0.71.0 // indirect
github.com/andybalholm/brotli v1.2.0 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/go-faster/city v1.0.1 // indirect
github.com/go-faster/errors v0.7.1 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/klauspost/compress v1.18.3 // indirect
github.com/paulmach/orb v0.12.0 // indirect
github.com/pierrec/lz4/v4 v4.1.25 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/segmentio/asm v1.2.1 // indirect
github.com/shopspring/decimal v1.4.0 // indirect
go.opentelemetry.io/otel v1.41.0 // indirect
go.opentelemetry.io/otel/trace v1.41.0 // indirect
go.yaml.in/yaml/v3 v3.0.4 // indirect
golang.org/x/sys v0.41.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)