MCPcopy Index your code
hub / github.com/crowdsecurity/crowdsec / Unique

Method Unique

pkg/database/ent/meta_query.go:52–55  ·  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

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

Callers 10

IDsMethod · 0.95
EdgesMethod · 0.45
FieldsMethod · 0.45
FieldsMethod · 0.45
EdgesMethod · 0.45
EdgesMethod · 0.45
FieldsMethod · 0.45
EdgesMethod · 0.45
FieldsMethod · 0.45
IndexesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected