IDsX is like IDs, but panics if an error occurs.
(ctx context.Context)
| 263 | |
| 264 | // IDsX is like IDs, but panics if an error occurs. |
| 265 | func (eq *EntityQuery) IDsX(ctx context.Context) []int { |
| 266 | ids, err := eq.IDs(ctx) |
| 267 | if err != nil { |
| 268 | panic(err) |
| 269 | } |
| 270 | return ids |
| 271 | } |
| 272 | |
| 273 | // Count returns the count of the given query. |
| 274 | func (eq *EntityQuery) Count(ctx context.Context) (int, error) { |