()
| 168 | } |
| 169 | |
| 170 | func (pag *paginator) Iterator() db.Iterator { |
| 171 | pq, err := pag.buildWithCursor() |
| 172 | if err != nil { |
| 173 | sess := pq.sel.(*selector).SQL().sess |
| 174 | return &iterator{sess, nil, err} |
| 175 | } |
| 176 | return pq.sel.Iterator() |
| 177 | } |
| 178 | |
| 179 | func (pag *paginator) IteratorContext(ctx context.Context) db.Iterator { |
| 180 | pq, err := pag.buildWithCursor() |
nothing calls this directly
no test coverage detected