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

Method ExecX

ent/node_create.go:777–781  ·  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

775
776// ExecX is like Exec, but panics if an error occurs.
777func (u *NodeUpsertOne) ExecX(ctx context.Context) {
778 if err := u.create.Exec(ctx); err != nil {
779 panic(err)
780 }
781}
782
783// Exec executes the UPSERT query and returns the inserted/updated ID.
784func (u *NodeUpsertOne) ID(ctx context.Context) (id int, err error) {

Callers

nothing calls this directly

Calls 1

ExecMethod · 0.65

Tested by

no test coverage detected