IDsX is like IDs, but panics if an error occurs.
(ctx context.Context)
| 190 | |
| 191 | // IDsX is like IDs, but panics if an error occurs. |
| 192 | func (sq *SettingQuery) IDsX(ctx context.Context) []int { |
| 193 | ids, err := sq.IDs(ctx) |
| 194 | if err != nil { |
| 195 | panic(err) |
| 196 | } |
| 197 | return ids |
| 198 | } |
| 199 | |
| 200 | // Count returns the count of the given query. |
| 201 | func (sq *SettingQuery) Count(ctx context.Context) (int, error) { |