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

Method SaveX

ent/user_create.go:1200–1206  ·  view source on GitHub ↗

SaveX is like Save, but panics if an error occurs.

(ctx context.Context)

Source from the content-addressed store, hash-verified

1198
1199// SaveX is like Save, but panics if an error occurs.
1200func (ucb *UserCreateBulk) SaveX(ctx context.Context) []*User {
1201 v, err := ucb.Save(ctx)
1202 if err != nil {
1203 panic(err)
1204 }
1205 return v
1206}
1207
1208// Exec executes the query.
1209func (ucb *UserCreateBulk) Exec(ctx context.Context) error {

Callers

nothing calls this directly

Calls 1

SaveMethod · 0.95

Tested by

no test coverage detected