MCPcopy Create free account
hub / github.com/dolthub/doltgresql / Next

Method Next

core/dataloader/tabdataloader.go:193–207  ·  view source on GitHub ↗
(ctx *sql.Context)

Source from the content-addressed store, hash-verified

191}
192
193func (t tabularRowIter) Next(ctx *sql.Context) (sql.Row, error) {
194 row, hasNext, err := t.tdl.nextRow(ctx, t.reader)
195 if err != nil {
196 return nil, err
197 }
198
199 // TODO: this isn't the best way to handle the count of rows, something like a RowUpdateAccumulator would be better
200 if hasNext {
201 t.tdl.results.RowsLoaded++
202 } else {
203 return nil, io.EOF
204 }
205
206 return row, nil
207}
208
209func (t tabularRowIter) Close(context *sql.Context) error {
210 return nil

Callers

nothing calls this directly

Calls 1

nextRowMethod · 0.45

Tested by

no test coverage detected