MCPcopy Index your code
hub / github.com/upper/db / IteratorContext

Method IteratorContext

internal/sqlbuilder/paginate.go:179–186  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

177}
178
179func (pag *paginator) IteratorContext(ctx context.Context) db.Iterator {
180 pq, err := pag.buildWithCursor()
181 if err != nil {
182 sess := pq.sel.(*selector).SQL().sess
183 return &iterator{sess, nil, err}
184 }
185 return pq.sel.IteratorContext(ctx)
186}
187
188func (pag *paginator) String() string {
189 pq, err := pag.buildWithCursor()

Callers

nothing calls this directly

Calls 3

buildWithCursorMethod · 0.95
SQLMethod · 0.65
IteratorContextMethod · 0.65

Tested by

no test coverage detected