2
0

update docs

This commit is contained in:
Lev Zakharov
2023-08-27 23:53:01 +03:00
committed by Jack Christensen
parent 18856482c4
commit f42824cab3
+1 -1
View File
@@ -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