Next prepares the next result row for reading with the Scan method. It returns false is case of error or if there are not more data to fetch. If the end of the resultset is reached, it automaticaly free resources like the Close method.
()
| 140 | // If the end of the resultset is reached, it automaticaly free resources like |
| 141 | // the Close method. |
| 142 | func (i *iteratorInternals) Next() bool { |
| 143 | return i.rows.Next() |
| 144 | } |
| 145 | |
| 146 | // Scan fill the given struct with the current row. |
| 147 | func (i *iteratorInternals) Scan(value interface{}) (err error) { |