aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/lib/pq/connector.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/lib/pq/connector.go')
-rw-r--r--vendor/github.com/lib/pq/connector.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/vendor/github.com/lib/pq/connector.go b/vendor/github.com/lib/pq/connector.go
index d7d4726..1145e12 100644
--- a/vendor/github.com/lib/pq/connector.go
+++ b/vendor/github.com/lib/pq/connector.go
@@ -27,6 +27,11 @@ func (c *Connector) Connect(ctx context.Context) (driver.Conn, error) {
return c.open(ctx)
}
+// Dialer allows change the dialer used to open connections.
+func (c *Connector) Dialer(dialer Dialer) {
+ c.dialer = dialer
+}
+
// Driver returns the underlying driver of this Connector.
func (c *Connector) Driver() driver.Driver {
return &Driver{}