ExistX is like Exist, but panics if an error occurs.
(ctx context.Context)
| 283 | |
| 284 | // ExistX is like Exist, but panics if an error occurs. |
| 285 | func (_q *UserQuery) ExistX(ctx context.Context) bool { |
| 286 | exist, err := _q.Exist(ctx) |
| 287 | if err != nil { |
| 288 | panic(err) |
| 289 | } |
| 290 | return exist |
| 291 | } |
| 292 | |
| 293 | // Clone returns a duplicate of the UserQuery builder, including all associated steps. It can be |
| 294 | // used to prepare common query builders and use them differently after the clone is made. |