AllX is like All, but panics if an error occurs.
(ctx context.Context)
| 218 | |
| 219 | // AllX is like All, but panics if an error occurs. |
| 220 | func (sq *ShareQuery) AllX(ctx context.Context) []*Share { |
| 221 | nodes, err := sq.All(ctx) |
| 222 | if err != nil { |
| 223 | panic(err) |
| 224 | } |
| 225 | return nodes |
| 226 | } |
| 227 | |
| 228 | // IDs executes the query and returns a list of Share IDs. |
| 229 | func (sq *ShareQuery) IDs(ctx context.Context) (ids []int, err error) { |