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

Method ExistX

ent/setting_query.go:232–238  ·  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

230
231// ExistX is like Exist, but panics if an error occurs.
232func (sq *SettingQuery) ExistX(ctx context.Context) bool {
233 exist, err := sq.Exist(ctx)
234 if err != nil {
235 panic(err)
236 }
237 return exist
238}
239
240// Clone returns a duplicate of the SettingQuery builder, including all associated steps. It can be
241// 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