Skip to content
callcount

gorm.io/gorm.DB.Session

third-party

The 6441st most-called third-party method by production calls. Called 109 times across 17 modules; 92 of those run outside tests and generated code.

All of gorm.io/gorm → Docs on pkg.go.dev ↗

prod calls
92
non-test, non-generated
all calls
109
total callsites
modules
17
distinct callers
in loop
12%
of prod calls
in tests
15%
16 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 method100%A method on a value whose type is known exactly.

where it's called

Callsites in the wild

12 representative callsites of 109, prioritizing in-loop and non-test usage. We link to source, never display it.

DB.Session · 12 of 109 callsites
  • in loop
  • gorm.io/gorm @v1.31.2

    callbacks/delete.go:47

    in loop
  • gorm.io/gorm @v1.31.2

    callbacks/delete.go:85

    in loop
  • gorm.io/gorm @v1.31.2

    callbacks/preload.go:155

    in loop
  • gorm.io/gorm @v1.31.2

    statement.go:216

    in loop
  • gorm.io/gorm @v1.31.2

    migrator/migrator.go:218

    in loop
  • gorm.io/gorm @v1.31.2

    finisher_api.go:219

    in loop
  • gorm.io/gorm @v1.31.2

    migrator/migrator.go:323

    in loop
  • gorm.io/gorm @v1.31.2

    callbacks/associations.go:350

    in loop
  • gorm.io/gorm @v1.31.2

    callbacks/associations.go:350

    in loop
  • gorm.io/gorm @v1.31.2

    generics.go:783

    in loop

top callers

The modules that reach for it

The modules that call DB.Session most in this snapshot.

  • gorm.io/gorm4440%
  • gorm.io/gen2220%
  • github.com/gogs/gogs76%
  • github.com/NoFxAiOS/nofx66%
  • github.com/anchore/grype44%

siblings

More from gorm.io/gorm

The other most-called members in this package. See all →