Versions in this module Expand all Collapse all v0 v0.1.0 Apr 24, 2026 Changes in this version + var ErrNoPool = errors.New("pgctx: no pool for this context") + func From(ctx context.Context) *pgxpool.Pool + func FromOK(ctx context.Context) (*pgxpool.Pool, bool) + func Middleware(fn PoolFunc, onErr ErrorHandler) func(http.Handler) http.Handler + func With(ctx context.Context, pool *pgxpool.Pool) context.Context + type ErrorHandler func(w http.ResponseWriter, r *http.Request, err error) + type PoolFunc func(ctx context.Context) (*pgxpool.Pool, error)