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

Method getPoolRows

pgxpool/pool.go:63–75  ·  view source on GitHub ↗
(c *Conn, r pgx.Rows)

Source from the content-addressed store, hash-verified

61}
62
63func (cr *connResource) getPoolRows(c *Conn, r pgx.Rows) *poolRows {
64 if len(cr.poolRowss) == 0 {
65 cr.poolRowss = make([]poolRows, 128)
66 }
67
68 pr := &cr.poolRowss[len(cr.poolRowss)-1]
69 cr.poolRowss = cr.poolRowss[0 : len(cr.poolRowss)-1]
70
71 pr.c = c
72 pr.r = r
73
74 return pr
75}
76
77// Pool allows for connection reuse.
78type Pool struct {

Callers 1

QueryMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected