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

Method Unique

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

51// Unique configures the query builder to filter duplicate records on query.
52// By default, unique is set to true, and can be disabled using this method.
53func (_q *MachineQuery) Unique(unique bool) *MachineQuery {
54 _q.ctx.Unique = &unique
55 return _q
56}
57
58// Order specifies how the records should be ordered.
59func (_q *MachineQuery) Order(o ...machine.OrderOption) *MachineQuery {

Callers 1

IDsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected