IDsX is like IDs, but panics if an error occurs.
(ctx context.Context)
| 216 | |
| 217 | // IDsX is like IDs, but panics if an error occurs. |
| 218 | func (_q *MachineQuery) IDsX(ctx context.Context) []int { |
| 219 | ids, err := _q.IDs(ctx) |
| 220 | if err != nil { |
| 221 | panic(err) |
| 222 | } |
| 223 | return ids |
| 224 | } |
| 225 | |
| 226 | // Count returns the count of the given query. |
| 227 | func (_q *MachineQuery) Count(ctx context.Context) (int, error) { |