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

Method SaveX

ent/entity_create.go:203–209  ·  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

201
202// SaveX calls Save and panics if Save returns an error.
203func (ec *EntityCreate) SaveX(ctx context.Context) *Entity {
204 v, err := ec.Save(ctx)
205 if err != nil {
206 panic(err)
207 }
208 return v
209}
210
211// Exec executes the query.
212func (ec *EntityCreate) Exec(ctx context.Context) error {

Callers

nothing calls this directly

Calls 1

SaveMethod · 0.95

Tested by

no test coverage detected