Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
lzakharov committed Aug 27, 2023
1 parent 389901a commit b2ddefa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/sql.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b2ddefa

Please sign in to comment.