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

Method Query

ent/intercept/intercept.go:387–392  ·  view source on GitHub ↗

Query calls f(ctx, q).

(ctx context.Context, q ent.Query)

Source from the content-addressed store, hash-verified

385
386// Query calls f(ctx, q).
387func (f SettingFunc) Query(ctx context.Context, q ent.Query) (ent.Value, error) {
388 if q, ok := q.(*ent.SettingQuery); ok {
389 return f(ctx, q)
390 }
391 return nil, fmt.Errorf("unexpected query type %T. expect *ent.SettingQuery", q)
392}
393
394// The TraverseSetting type is an adapter to allow the use of ordinary function as Traverser.
395type TraverseSetting func(context.Context, *ent.SettingQuery) error

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected