IDsX is like IDs, but panics if an error occurs.
(ctx context.Context)
| 289 | |
| 290 | // IDsX is like IDs, but panics if an error occurs. |
| 291 | func (_q *AlertQuery) IDsX(ctx context.Context) []int { |
| 292 | ids, err := _q.IDs(ctx) |
| 293 | if err != nil { |
| 294 | panic(err) |
| 295 | } |
| 296 | return ids |
| 297 | } |
| 298 | |
| 299 | // Count returns the count of the given query. |
| 300 | func (_q *AlertQuery) Count(ctx context.Context) (int, error) { |