Files
grafana/pkg/tsdb/grafana-postgresql-datasource/proxy.go
Zoltán Bedi 8d75d79313 PostgreSQL: Remove feature toggle postgresDSUsePGX (#113675)
* PostgreSQL: Remove feature toggle `postgresDSUsePGX`

* Fix tests and linting

* Address review comments
2025-11-24 10:26:41 +01:00

17 lines
341 B
Go

package postgres
import (
"context"
"net"
"golang.org/x/net/proxy"
)
type DialFunc = func(ctx context.Context, network string, address string) (net.Conn, error)
func newDialFunc(dialer proxy.Dialer) DialFunc {
return func(ctx context.Context, network string, addr string) (net.Conn, error) {
return dialer.Dial(network, addr)
}
}