IDsX is like IDs, but panics if an error occurs.
(ctx context.Context)
| 287 | |
| 288 | // IDsX is like IDs, but panics if an error occurs. |
| 289 | func (spq *StoragePolicyQuery) IDsX(ctx context.Context) []int { |
| 290 | ids, err := spq.IDs(ctx) |
| 291 | if err != nil { |
| 292 | panic(err) |
| 293 | } |
| 294 | return ids |
| 295 | } |
| 296 | |
| 297 | // Count returns the count of the given query. |
| 298 | func (spq *StoragePolicyQuery) Count(ctx context.Context) (int, error) { |