database/sql.DB.Close
standard libraryThe 854th most-called standard-library method by production calls. Called 2,477 times across 149 modules; 792 of those run outside tests and generated code.
- prod calls
- 792
- non-test, non-generated
- all calls
- 2,477
- total callsites
- modules
- 149
- distinct callers
- in loop
- 9%
- of prod calls
- in tests
- 68%
- 1,685 calls
- resolved
- 100%
- to a known target
resolution mix
How each call resolves
How each call was attributed. Only resolved kinds, where the target function is known, count toward the ranking. Interface dispatch and unresolved receivers are reported separately and never guessed. Read the taxonomy →
- Concrete method96%A method on a value whose type is known exactly.
- Embedded method4%Reached through an embedded type.
who calls this
Notable callers
Production calls into DB.Close from notable Go projects. Open one on the map to see what else it hammers.
- CockroachDB 81 10%
- Vault 15 2%
- Grafana 14 2%
- HashiCorp 7 <1%
- InfluxDB 7 <1%
where it's called
Callsites in the wild
12 representative callsites of 2,477, prioritizing in-loop and non-test usage. We link to source, never display it.
-
cockroachdb/cockroach @v19.2.12+incompatible
in loop - in loop
- in loop
- in loop
- in loop
- in loop
- in loop
- in loop
-
gogf/gf @v1.16.9
in loop -
gogf/gf/v2 @v2.10.2
in loop - in loop
- in loop
top callers
The modules that reach for it
The modules that call DB.Close most in this snapshot.
- github.com/grafana/alloy2199%
- github.com/gastownhall/beads1918%
- github.com/steveyegge/beads1918%
- modernc.org/sqlite1526%
- github.com/cockroachdb/cockroach1265%
siblings
More from database/sql
The other most-called members in this package. See all →