MCPcopy Create free account
hub / github.com/crowdsecurity/crowdsec / Limit

Method Limit

pkg/database/ent/machine_query.go:40–43  ·  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

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

Callers 5

FirstMethod · 0.95
FirstIDMethod · 0.95
OnlyMethod · 0.95
OnlyIDMethod · 0.95
sqlQueryMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected