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

Method Where

ent/entity_query.go:37–40  ·  view source on GitHub ↗

Where adds a new predicate for the EntityQuery builder.

(ps ...predicate.Entity)

Source from the content-addressed store, hash-verified

35
36// Where adds a new predicate for the EntityQuery builder.
37func (eq *EntityQuery) Where(ps ...predicate.Entity) *EntityQuery {
38 eq.predicates = append(eq.predicates, ps...)
39 return eq
40}
41
42// Limit the number of records to be returned by this query.
43func (eq *EntityQuery) Limit(limit int) *EntityQuery {

Callers 3

loadFileMethod · 0.95
loadUserMethod · 0.45
loadStoragePolicyMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected