update docs
This commit is contained in:
committed by
Jack Christensen
parent
18856482c4
commit
f42824cab3
+1
-1
@@ -145,7 +145,7 @@ func OptionBeforeConnect(bc func(context.Context, *pgx.ConnConfig) error) Option
|
||||
}
|
||||
}
|
||||
|
||||
// OptionAfterConnect provides a callback for after connect.
|
||||
// OptionAfterConnect provides a callback for after connect. Used only if db is opened with *pgx.ConnConfig.
|
||||
func OptionAfterConnect(ac func(context.Context, *pgx.Conn) error) OptionOpenDB {
|
||||
return func(dc *connector) {
|
||||
dc.AfterConnect = ac
|
||||
|
||||
Reference in New Issue
Block a user