ExistX is like Exist, but panics if an error occurs.
(ctx context.Context)
| 230 | |
| 231 | // ExistX is like Exist, but panics if an error occurs. |
| 232 | func (sq *SettingQuery) ExistX(ctx context.Context) bool { |
| 233 | exist, err := sq.Exist(ctx) |
| 234 | if err != nil { |
| 235 | panic(err) |
| 236 | } |
| 237 | return exist |
| 238 | } |
| 239 | |
| 240 | // Clone returns a duplicate of the SettingQuery builder, including all associated steps. It can be |
| 241 | // used to prepare common query builders and use them differently after the clone is made. |