(ctx context.Context, sd *pgconn.StatementDescription, arguments []any)
| 594 | } |
| 595 | |
| 596 | func (c *Conn) execParams(ctx context.Context, sd *pgconn.StatementDescription, arguments []any) (pgconn.CommandTag, error) { |
| 597 | err := c.eqb.Build(c.typeMap, sd, arguments) |
| 598 | if err != nil { |
| 599 | return pgconn.CommandTag{}, err |
| 600 | } |
| 601 | |
| 602 | result := c.pgConn.ExecParams(ctx, sd.SQL, c.eqb.ParamValues, sd.ParamOIDs, c.eqb.ParamFormats, c.eqb.ResultFormats).Read() |
| 603 | c.eqb.reset() // Allow c.eqb internal memory to be GC'ed as soon as possible. |
| 604 | return result.CommandTag, result.Err |
| 605 | } |
| 606 | |
| 607 | func (c *Conn) execPrepared(ctx context.Context, sd *pgconn.StatementDescription, arguments []any) (pgconn.CommandTag, error) { |
| 608 | err := c.eqb.Build(c.typeMap, sd, arguments) |
no test coverage detected