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

Method Unique

ent/share_query.go:54–57  ·  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

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

Callers 1

IDsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected