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

Method ExistX

ent/task_query.go:256–262  ·  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

254
255// ExistX is like Exist, but panics if an error occurs.
256func (tq *TaskQuery) ExistX(ctx context.Context) bool {
257 exist, err := tq.Exist(ctx)
258 if err != nil {
259 panic(err)
260 }
261 return exist
262}
263
264// Clone returns a duplicate of the TaskQuery builder, including all associated steps. It can be
265// 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