ExistX is like Exist, but panics if an error occurs.
(ctx context.Context)
| 256 | |
| 257 | // ExistX is like Exist, but panics if an error occurs. |
| 258 | func (_q *MachineQuery) ExistX(ctx context.Context) bool { |
| 259 | exist, err := _q.Exist(ctx) |
| 260 | if err != nil { |
| 261 | panic(err) |
| 262 | } |
| 263 | return exist |
| 264 | } |
| 265 | |
| 266 | // Clone returns a duplicate of the MachineQuery builder, including all associated steps. It can be |
| 267 | // used to prepare common query builders and use them differently after the clone is made. |