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

Method Limit

pkg/database/ent/event_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 (_q *EventQuery) Limit(limit int) *EventQuery {
40 _q.ctx.Limit = &limit
41 return _q
42}
43
44// Offset to start from.
45func (_q *EventQuery) Offset(offset int) *EventQuery {

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