MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / Unique

Method Unique

ent/entity_query.go:56–59  ·  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

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

Callers 1

IDsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected