(ctx context.Context, sd *pgconn.StatementDescription, arguments []any)
| 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) |
| 609 | if err != nil { |
| 610 | return pgconn.CommandTag{}, err |
| 611 | } |
| 612 | |
| 613 | result := c.pgConn.ExecStatement(ctx, sd, c.eqb.ParamValues, c.eqb.ParamFormats, c.eqb.ResultFormats).Read() |
| 614 | c.eqb.reset() // Allow c.eqb internal memory to be GC'ed as soon as possible. |
| 615 | return result.CommandTag, result.Err |
| 616 | } |
| 617 | |
| 618 | func (c *Conn) execSQLParams(ctx context.Context, sql string, args []any) (pgconn.CommandTag, error) { |
| 619 | err := c.eqb.Build(c.typeMap, nil, args) |
no test coverage detected