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

Method SaveX

ent/storagepolicy_create.go:280–286  ·  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

278
279// SaveX calls Save and panics if Save returns an error.
280func (spc *StoragePolicyCreate) SaveX(ctx context.Context) *StoragePolicy {
281 v, err := spc.Save(ctx)
282 if err != nil {
283 panic(err)
284 }
285 return v
286}
287
288// Exec executes the query.
289func (spc *StoragePolicyCreate) Exec(ctx context.Context) error {

Callers

nothing calls this directly

Calls 1

SaveMethod · 0.95

Tested by

no test coverage detected