(scopes ...func(db *Statement))
| 256 | } |
| 257 | |
| 258 | func (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 | |
| 267 | func (c chainG[T]) Where(query interface{}, args ...interface{}) ChainInterface[T] { |
| 268 | return c.with(func(db *DB) *DB { |