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

Method ExistX

ent/share_query.go:281–287  ·  view source on GitHub ↗

ExistX is like Exist, but panics if an error occurs.

(ctx context.Context)

Source from the content-addressed store, hash-verified

279
280// ExistX is like Exist, but panics if an error occurs.
281func (sq *ShareQuery) ExistX(ctx context.Context) bool {
282 exist, err := sq.Exist(ctx)
283 if err != nil {
284 panic(err)
285 }
286 return exist
287}
288
289// Clone returns a duplicate of the ShareQuery builder, including all associated steps. It can be
290// used to prepare common query builders and use them differently after the clone is made.

Callers

nothing calls this directly

Calls 1

ExistMethod · 0.95

Tested by

no test coverage detected