(c *Conn, r pgx.Row)
| 47 | } |
| 48 | |
| 49 | func (cr *connResource) getPoolRow(c *Conn, r pgx.Row) *poolRow { |
| 50 | if len(cr.poolRows) == 0 { |
| 51 | cr.poolRows = make([]poolRow, 128) |
| 52 | } |
| 53 | |
| 54 | pr := &cr.poolRows[len(cr.poolRows)-1] |
| 55 | cr.poolRows = cr.poolRows[0 : len(cr.poolRows)-1] |
| 56 | |
| 57 | pr.c = c |
| 58 | pr.r = r |
| 59 | |
| 60 | return pr |
| 61 | } |
| 62 | |
| 63 | func (cr *connResource) getPoolRows(c *Conn, r pgx.Rows) *poolRows { |
| 64 | if len(cr.poolRowss) == 0 { |