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

Function db

tests/helper_test.go:321–327  ·  view source on GitHub ↗
(unscoped bool)

Source from the content-addressed store, hash-verified

319}
320
321func db(unscoped bool) *gorm.DB {
322 if unscoped {
323 return DB.Unscoped()
324 } else {
325 return DB
326 }
327}

Callers 2

doCheckPetFunction · 0.85
doCheckUserFunction · 0.85

Calls 1

UnscopedMethod · 0.45

Tested by

no test coverage detected