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

Method ExecX

ent/node_delete.go:34–40  ·  view source on GitHub ↗

ExecX is like Exec, but panics if an error occurs.

(ctx context.Context)

Source from the content-addressed store, hash-verified

32
33// ExecX is like Exec, but panics if an error occurs.
34func (nd *NodeDelete) ExecX(ctx context.Context) int {
35 n, err := nd.Exec(ctx)
36 if err != nil {
37 panic(err)
38 }
39 return n
40}
41
42func (nd *NodeDelete) sqlExec(ctx context.Context) (int, error) {
43 _spec := sqlgraph.NewDeleteSpec(node.Table, sqlgraph.NewFieldSpec(node.FieldID, field.TypeInt))

Callers

nothing calls this directly

Calls 1

ExecMethod · 0.95

Tested by

no test coverage detected