MCPcopy Index your code
hub / github.com/cloudreve/cloudreve / SaveX

Method SaveX

ent/node_create.go:875–881  ·  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

873
874// SaveX is like Save, but panics if an error occurs.
875func (ncb *NodeCreateBulk) SaveX(ctx context.Context) []*Node {
876 v, err := ncb.Save(ctx)
877 if err != nil {
878 panic(err)
879 }
880 return v
881}
882
883// Exec executes the query.
884func (ncb *NodeCreateBulk) Exec(ctx context.Context) error {

Callers

nothing calls this directly

Calls 1

SaveMethod · 0.95

Tested by

no test coverage detected