IDsX is like IDs, but panics if an error occurs.
(ctx context.Context)
| 407 | |
| 408 | // IDsX is like IDs, but panics if an error occurs. |
| 409 | func (uq *UserQuery) IDsX(ctx context.Context) []int { |
| 410 | ids, err := uq.IDs(ctx) |
| 411 | if err != nil { |
| 412 | panic(err) |
| 413 | } |
| 414 | return ids |
| 415 | } |
| 416 | |
| 417 | // Count returns the count of the given query. |
| 418 | func (uq *UserQuery) Count(ctx context.Context) (int, error) { |