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

Method get

internal/sanitize/sanitize.go:528–535  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

526}
527
528func (pool *pool[E]) get() E {
529 v, ok := pool.p.Get().(E)
530 if !ok {
531 v = pool.new()
532 }
533
534 return v
535}
536
537func (p *pool[E]) put(v E) {
538 if p.reset(v) {

Callers 3

SanitizeMethod · 0.80
initMethod · 0.80
SanitizeSQLFunction · 0.80

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected