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

Method ExistX

ent/node_query.go:257–263  ·  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

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