queryx: added Iter function

Fixes #64
This commit is contained in:
Michał Matczuk
2018-10-23 16:17:04 +02:00
parent 68ea72072a
commit 8ea6a9d5f5

View File

@@ -238,3 +238,10 @@ func (q *Queryx) SelectRelease(dest interface{}) error {
defer q.Release()
return q.Select(dest)
}
// Iter returns Iterx instance for the query. It should be used when data is too
// big to be loaded with Select in order to do row by row iteration.
// See Iterx StructScan function.
func (q *Queryx) Iter() *Iterx {
return Iter(q.Query)
}