AllX is like All, but panics if an error occurs.
(ctx context.Context)
| 169 | |
| 170 | // AllX is like All, but panics if an error occurs. |
| 171 | func (sq *SettingQuery) AllX(ctx context.Context) []*Setting { |
| 172 | nodes, err := sq.All(ctx) |
| 173 | if err != nil { |
| 174 | panic(err) |
| 175 | } |
| 176 | return nodes |
| 177 | } |
| 178 | |
| 179 | // IDs executes the query and returns a list of Setting IDs. |
| 180 | func (sq *SettingQuery) IDs(ctx context.Context) (ids []int, err error) { |