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

Method with

generics.go:243–250  ·  view source on GitHub ↗
(v op)

Source from the content-addressed store, hash-verified

241}
242
243func (c chainG[T]) with(v op) chainG[T] {
244 return chainG[T]{
245 execG: execG[T]{g: &g[T]{
246 db: c.g.db,
247 ops: append(append([]op(nil), c.g.ops...), v),
248 }},
249 }
250}
251
252func (c chainG[T]) Table(name string, args ...interface{}) ChainInterface[T] {
253 return c.with(func(db *DB) *DB {

Callers 15

TableMethod · 0.95
ScopesMethod · 0.95
WhereMethod · 0.95
NotMethod · 0.95
OrMethod · 0.95
LimitMethod · 0.95
OffsetMethod · 0.95
JoinsMethod · 0.95
SelectMethod · 0.95
OmitMethod · 0.95
MapColumnsMethod · 0.95
DistinctMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected