func (n *NoticeHandlerConnector) Connect(ctx context.Context) (driver.Conn, error) {
	c, err := n.Connector.Connect(ctx)
	if err == nil {
		SetNoticeHandler(c, n.noticeHandler)
	}
	return c, err
}
Connect calls the underlying connector's connect method and then sets the
notice handler.
package pq
import (
	"context"
	"database/sql/driver"
)
func NoticeHandler(c driver.Conn) func(*Error) {
	return c.(*conn).noticeHandler
}
func SetNoticeHandler(c driver.Conn, handler func(*Error)) {
	c.(*conn).noticeHandler = handler
}
type NoticeHandlerConnector struct {
	driver.Connector
	noticeHandler func(*Error)
}