MCPcopy Index your code
hub / github.com/cloudreve/cloudreve / Limit

Method Limit

ent/node_query.go:39–42  ·  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

37
38// Limit the number of records to be returned by this query.
39func (nq *NodeQuery) Limit(limit int) *NodeQuery {
40 nq.ctx.Limit = &limit
41 return nq
42}
43
44// Offset to start from.
45func (nq *NodeQuery) Offset(offset int) *NodeQuery {

Callers 4

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

Calls

no outgoing calls

Tested by

no test coverage detected