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

Method Exec

generics.go:195–198  ·  view source on GitHub ↗
(ctx context.Context, sql string, values ...interface{})

Source from the content-addressed store, hash-verified

193}
194
195func (c *g[T]) Exec(ctx context.Context, sql string, values ...interface{}) error {
196 var r T
197 return c.apply(ctx).Model(r).Exec(sql, values...).Error
198}
199
200type createG[T any] struct {
201 chainG[T]

Callers

nothing calls this directly

Calls 3

applyMethod · 0.95
ModelMethod · 0.80
ExecMethod · 0.65

Tested by

no test coverage detected