database/sql.DB.Exec
standard libraryThe 920th most-called standard-library method by production calls. Called 2,868 times across 108 modules; 720 of those run outside tests and generated code.
- prod calls
- 720
- non-test, non-generated
- all calls
- 2,868
- total callsites
- modules
- 108
- distinct callers
- in loop
- 10%
- of prod calls
- in tests
- 75%
- 2,148 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.Exec from notable Go projects. Open one on the map to see what else it hammers.
- CockroachDB 137 19%
- ClickHouse 44 6%
- Vault 10 1%
- containerd 5 <1%
- HashiCorp 5 <1%
where it's called
Callsites in the wild
12 representative callsites of 2,868, prioritizing in-loop and non-test usage. We link to source, never display it.
-
cockroachdb/cockroach @v19.2.12+incompatible
in loop - in loop
-
encr.dev @v1.57.13
cli/daemon/apps/apps.go:145
in loop - in loop
- in loop
- in loop
- in loop
-
cloudnative-pg/cloudnative-pg @v1.30.0
pkg/management/postgres/logicalimport/roleinheritance.go:82 ↗
in loop - in loop
- in loop
- in loop
-
golang-migrate/migrate @v3.5.4+incompatible
in loop
top callers
The modules that reach for it
The modules that call DB.Exec most in this snapshot.
- github.com/cockroachdb/cockroach93132%
- modernc.org/sqlite1957%
- github.com/ClickHouse/clickhouse-go/v21616%
- github.com/duckdb/duckdb-go/v21415%
- github.com/benbjohnson/litestream1345%
siblings
More from database/sql
The other most-called members in this package. See all →