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

Method Limit

pkg/database/ent/alert_query.go:47–50  ·  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

45
46// Limit the number of records to be returned by this query.
47func (_q *AlertQuery) Limit(limit int) *AlertQuery {
48 _q.ctx.Limit = &limit
49 return _q
50}
51
52// Offset to start from.
53func (_q *AlertQuery) Offset(offset int) *AlertQuery {

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