IDsX is like IDs, but panics if an error occurs.
(ctx context.Context)
| 214 | |
| 215 | // IDsX is like IDs, but panics if an error occurs. |
| 216 | func (mq *MetadataQuery) IDsX(ctx context.Context) []int { |
| 217 | ids, err := mq.IDs(ctx) |
| 218 | if err != nil { |
| 219 | panic(err) |
| 220 | } |
| 221 | return ids |
| 222 | } |
| 223 | |
| 224 | // Count returns the count of the given query. |
| 225 | func (mq *MetadataQuery) Count(ctx context.Context) (int, error) { |