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

Method SaveX

ent/metadata_create.go:634–640  ·  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

632
633// SaveX is like Save, but panics if an error occurs.
634func (mcb *MetadataCreateBulk) SaveX(ctx context.Context) []*Metadata {
635 v, err := mcb.Save(ctx)
636 if err != nil {
637 panic(err)
638 }
639 return v
640}
641
642// Exec executes the query.
643func (mcb *MetadataCreateBulk) Exec(ctx context.Context) error {

Callers

nothing calls this directly

Calls 1

SaveMethod · 0.95

Tested by

no test coverage detected