MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / Exec

Method Exec

ent/task_create.go:642–647  ·  view source on GitHub ↗

Exec executes the query.

(ctx context.Context)

Source from the content-addressed store, hash-verified

640
641// Exec executes the query.
642func (u *TaskUpsertOne) Exec(ctx context.Context) error {
643 if len(u.create.conflict) == 0 {
644 return errors.New("ent: missing options for TaskCreate.OnConflict")
645 }
646 return u.create.Exec(ctx)
647}
648
649// ExecX is like Exec, but panics if an error occurs.
650func (u *TaskUpsertOne) ExecX(ctx context.Context) {

Callers

nothing calls this directly

Calls 2

NewMethod · 0.65
ExecMethod · 0.65

Tested by

no test coverage detected