vertica-sql-go icon indicating copy to clipboard operation
vertica-sql-go copied to clipboard

Feat request: add custom Dialer

Open prochac opened this issue 11 months ago • 0 comments

All (good) database drivers provide some way to inject custom net.Dialer

https://pkg.go.dev/github.com/microsoft/go-mssqldb#Connector.Dialer https://pkg.go.dev/github.com/ClickHouse/clickhouse-go/v2#Options.DialContext https://pkg.go.dev/github.com/go-sql-driver/mysql#Config.DialFunc (in future release, v1.8.2) https://pkg.go.dev/github.com/jackc/pgx/[email protected]/pgconn#Config.DialFunc

It's useful for seamless SSH tunneling. Then we can put in https://pkg.go.dev/golang.org/x/crypto/ssh#Client.DialContext

prochac avatar Feb 05 '25 16:02 prochac