go.mongodb.org/mongo-driver/mongo.Client.Database
third-partyThe 6780th most-called third-party method by production calls. Called 144 times across 1 modules; 88 of those run outside tests and generated code.
51% in production calls vs 2026-W37 (178 → 88)
All of go.mongodb.org/mongo-driver/mongo → Docs on pkg.go.dev ↗
- prod calls
- 88
- non-test, non-generated
- all calls
- 144
- total callsites
- modules
- 1
- distinct callers
- in loop
- 3%
- of prod calls
- in tests
- 39%
- 56 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 method99%A method on a value whose type is known exactly.
- Embedded method<1%Reached through an embedded type.
where it's called
Callsites in the wild
12 representative callsites of 144, prioritizing in-loop and non-test usage. We link to source, never display it.
-
go.mongodb.org/mongo-driver @v1.17.10
mongo/integration/unified/admin_helpers.go:69
in loop -
go.mongodb.org/mongo-driver @v1.17.10
cmd/testoidcauth/main.go:225
in loop -
go.mongodb.org/mongo-driver @v1.17.10
mongo/integration/mtest/mongotest.go:426
in loop -
go.mongodb.org/mongo-driver @v1.17.10
benchmark/operation_test.go:45
in loop test -
go.mongodb.org/mongo-driver @v1.17.10
benchmark/operation_test.go:89
in loop test -
go.mongodb.org/mongo-driver @v1.17.10
benchmark/operation_test.go:138
in loop test -
go.mongodb.org/mongo-driver @v1.17.10
mongo/integration/client_test.go:151
in loop test -
go.mongodb.org/mongo-driver @v1.17.10
mongo/integration/client_test.go:188
in loop test -
go.mongodb.org/mongo-driver @v1.17.10
mongo/client_test.go:369
in loop test -
go.mongodb.org/mongo-driver @v1.17.10
mongo/client_test.go:375
in loop test -
go.mongodb.org/mongo-driver @v1.17.10
mongo/integration/change_stream_test.go:450
in loop test -
go.mongodb.org/mongo-driver @v1.17.10
mongo/integration/crud_helpers_test.go:1426
in loop test
top callers
The modules that reach for it
The modules that call Client.Database most in this snapshot.
- go.mongodb.org/mongo-driver144100%
siblings
More from go.mongodb.org/mongo-driver/mongo
The other most-called members in this package. See all →