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

Method Limit

ent/task_query.go:38–41  ·  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

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

Callers 4

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

Calls

no outgoing calls

Tested by

no test coverage detected