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

Method Query

ent/intercept/intercept.go:279–284  ·  view source on GitHub ↗

Query calls f(ctx, q).

(ctx context.Context, q ent.Query)

Source from the content-addressed store, hash-verified

277
278// Query calls f(ctx, q).
279func (f NodeFunc) Query(ctx context.Context, q ent.Query) (ent.Value, error) {
280 if q, ok := q.(*ent.NodeQuery); ok {
281 return f(ctx, q)
282 }
283 return nil, fmt.Errorf("unexpected query type %T. expect *ent.NodeQuery", q)
284}
285
286// The TraverseNode type is an adapter to allow the use of ordinary function as Traverser.
287type TraverseNode func(context.Context, *ent.NodeQuery) error

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected