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

Method Unique

ent/setting_query.go:49–52  ·  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

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

Callers 1

IDsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected