AllX is like All, but panics if an error occurs.
(ctx context.Context)
| 268 | |
| 269 | // AllX is like All, but panics if an error occurs. |
| 270 | func (_q *AlertQuery) AllX(ctx context.Context) []*Alert { |
| 271 | nodes, err := _q.All(ctx) |
| 272 | if err != nil { |
| 273 | panic(err) |
| 274 | } |
| 275 | return nodes |
| 276 | } |
| 277 | |
| 278 | // IDs executes the query and returns a list of Alert IDs. |
| 279 | func (_q *AlertQuery) IDs(ctx context.Context) (ids []int, err error) { |