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

Method SaveX

ent/share_create.go:198–204  ·  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

196
197// SaveX calls Save and panics if Save returns an error.
198func (sc *ShareCreate) SaveX(ctx context.Context) *Share {
199 v, err := sc.Save(ctx)
200 if err != nil {
201 panic(err)
202 }
203 return v
204}
205
206// Exec executes the query.
207func (sc *ShareCreate) Exec(ctx context.Context) error {

Callers

nothing calls this directly

Calls 1

SaveMethod · 0.95

Tested by

no test coverage detected