Skip to content
callcount

gorm.io/gorm.DB.AddError

third-party

The 4863rd most-called third-party method by production calls. Called 123 times across 3 modules; 122 of those run outside tests and generated code.

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

prod calls
122
non-test, non-generated
all calls
123
total callsites
modules
3
distinct callers
in loop
36%
of prod calls
in tests
<1%
1 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 method83%A method on a value whose type is known exactly.
  • Embedded method17%Reached through an embedded type.

where it's called

Callsites in the wild

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

DB.AddError · 12 of 123 callsites
  • gorm.io/gorm @v1.31.2

    callbacks/callmethod.go:19

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

    callbacks/update.go:24

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

    callbacks/associations.go:28

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

    callbacks/delete.go:75

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

    scan.go:76

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

    callbacks/delete.go:104

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

    scan.go:106

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

    chainable_api.go:126

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

    callbacks/associations.go:147

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

    callbacks/associations.go:149

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

    scan.go:173

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

    callbacks/associations.go:177

    in loop

top callers

The modules that reach for it

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

  • gorm.io/gorm11896%
  • gorm.io/gen43%
  • github.com/juanfont/headscale1<1%

siblings

More from gorm.io/gorm

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