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

Method SaveX

ent/user_create.go:316–322  ·  view source on GitHub ↗

SaveX calls Save and panics if Save returns an error.

(ctx context.Context)

Source from the content-addressed store, hash-verified

314
315// SaveX calls Save and panics if Save returns an error.
316func (uc *UserCreate) SaveX(ctx context.Context) *User {
317 v, err := uc.Save(ctx)
318 if err != nil {
319 panic(err)
320 }
321 return v
322}
323
324// Exec executes the query.
325func (uc *UserCreate) Exec(ctx context.Context) error {

Callers

nothing calls this directly

Calls 1

SaveMethod · 0.95

Tested by

no test coverage detected