func WithGuardedStmtCache(names ...string) Option {
	return func(config *pgx.ConnConfig) {
		config.BuildStatementCache = func(conn *pgconn.PgConn) stmtcache.Cache {
			return NewGuardedStmtCache(conn, names...)
		}
	}
}
WithGuardedStmtCache is a functional option to initialize a the pgtest conn
with a guarded cache that fails if pgx attempts to cache any SQL query in
names. The names are typically SQL statements.
package pgtest
import (
	"context"
	"fmt"
	"github.com/jackc/pgconn"
	"github.com/jackc/pgconn/stmtcache"
	"github.com/jackc/pgx/v4"
)