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)
| 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. |
| 49 | func (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. |
| 55 | func (sq *SettingQuery) Order(o ...setting.OrderOption) *SettingQuery { |