All executes the query and returns a list of Settings.
(ctx context.Context)
| 159 | |
| 160 | // All executes the query and returns a list of Settings. |
| 161 | func (sq *SettingQuery) All(ctx context.Context) ([]*Setting, error) { |
| 162 | ctx = setContextOp(ctx, sq.ctx, "All") |
| 163 | if err := sq.prepareQuery(ctx); err != nil { |
| 164 | return nil, err |
| 165 | } |
| 166 | qr := querierAll[[]*Setting, *SettingQuery]() |
| 167 | return withInterceptors[[]*Setting](ctx, sq, qr, sq.inters) |
| 168 | } |
| 169 | |
| 170 | // AllX is like All, but panics if an error occurs. |
| 171 | func (sq *SettingQuery) AllX(ctx context.Context) []*Setting { |
no test coverage detected