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

Method getPoolRow

pgxpool/pool.go:49–61  ·  view source on GitHub ↗
(c *Conn, r pgx.Row)

Source from the content-addressed store, hash-verified

47}
48
49func (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
63func (cr *connResource) getPoolRows(c *Conn, r pgx.Rows) *poolRows {
64 if len(cr.poolRowss) == 0 {

Callers 1

QueryRowMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected