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

Method Create

generics.go:226–228  ·  view source on GitHub ↗
(ctx context.Context, r *T)

Source from the content-addressed store, hash-verified

224}
225
226func (c createG[T]) Create(ctx context.Context, r *T) error {
227 return c.g.apply(ctx).Create(r).Error
228}
229
230func (c createG[T]) CreateInBatches(ctx context.Context, r *[]T, batchSize int) error {
231 return c.g.apply(ctx).CreateInBatches(r, batchSize).Error

Callers

nothing calls this directly

Calls 2

applyMethod · 0.80
CreateMethod · 0.65

Tested by

no test coverage detected