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

Method Get

internal/stmtcache/stmtcache.go:21–21  ·  view source on GitHub ↗

Get returns the statement description for sql. Returns nil if not found.

(sql string)

Source from the content-addressed store, hash-verified

19type Cache interface {
20 // Get returns the statement description for sql. Returns nil if not found.
21 Get(sql string) *pgconn.StatementDescription
22
23 // Put stores sd in the cache. Put panics if sd.SQL is "". Put does nothing if sd.SQL already exists in the cache.
24 Put(sd *pgconn.StatementDescription)

Callers 6

execMethod · 0.65
getMethod · 0.65
GetFunction · 0.65

Implementers 1

LRUCacheinternal/stmtcache/lru_cache.go

Calls

no outgoing calls

Tested by

no test coverage detected