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

Method Unique

pkg/database/ent/alert_query.go:60–63  ·  view source on GitHub ↗

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

(unique bool)

Source from the content-addressed store, hash-verified

58// Unique configures the query builder to filter duplicate records on query.
59// By default, unique is set to true, and can be disabled using this method.
60func (_q *AlertQuery) Unique(unique bool) *AlertQuery {
61 _q.ctx.Unique = &unique
62 return _q
63}
64
65// Order specifies how the records should be ordered.
66func (_q *AlertQuery) Order(o ...alert.OrderOption) *AlertQuery {

Callers 1

IDsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected