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