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

Method Scopes

generics.go:258–265  ·  view source on GitHub ↗
(scopes ...func(db *Statement))

Source from the content-addressed store, hash-verified

256}
257
258func (c chainG[T]) Scopes(scopes ...func(db *Statement)) ChainInterface[T] {
259 return c.with(func(db *DB) *DB {
260 for _, fc := range scopes {
261 fc(db.Statement)
262 }
263 return db
264 })
265}
266
267func (c chainG[T]) Where(query interface{}, args ...interface{}) ChainInterface[T] {
268 return c.with(func(db *DB) *DB {

Callers

nothing calls this directly

Calls 1

withMethod · 0.95

Tested by

no test coverage detected