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

Method Limit

ent/entity_query.go:43–46  ·  view source on GitHub ↗

Limit the number of records to be returned by this query.

(limit int)

Source from the content-addressed store, hash-verified

41
42// Limit the number of records to be returned by this query.
43func (eq *EntityQuery) Limit(limit int) *EntityQuery {
44 eq.ctx.Limit = &limit
45 return eq
46}
47
48// Offset to start from.
49func (eq *EntityQuery) Offset(offset int) *EntityQuery {

Callers 4

FirstMethod · 0.95
FirstIDMethod · 0.95
OnlyMethod · 0.95
OnlyIDMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected