MCPcopy
hub / github.com/jackc/pgx / stressExecParamsSelect

Function stressExecParamsSelect

pgconn/pgconn_stress_test.go:73–78  ·  view source on GitHub ↗
(pgConn *pgconn.PgConn)

Source from the content-addressed store, hash-verified

71}
72
73func stressExecParamsSelect(pgConn *pgconn.PgConn) error {
74 ctx, cancel := context.WithCancel(context.Background())
75 defer cancel()
76 result := pgConn.ExecParams(ctx, "select * from widgets where id < $1", [][]byte{[]byte("10")}, nil, nil, nil).Read()
77 return result.Err
78}
79
80func stressBatch(pgConn *pgconn.PgConn) error {
81 ctx, cancel := context.WithCancel(context.Background())

Callers

nothing calls this directly

Calls 2

ReadMethod · 0.45
ExecParamsMethod · 0.45

Tested by

no test coverage detected