MCPcopy
hub / github.com/go-gorm/gorm / getInstance

Method getInstance

generics.go:238–241  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

236}
237
238func (c chainG[T]) getInstance() *DB {
239 var r T
240 return c.g.apply(context.Background()).Model(r).getInstance()
241}
242
243func (c chainG[T]) with(v op) chainG[T] {
244 return chainG[T]{

Callers 4

BuildMethod · 0.95
applyMethod · 0.45
JoinsMethod · 0.45
PreloadMethod · 0.45

Calls 2

ModelMethod · 0.80
applyMethod · 0.80

Tested by

no test coverage detected