canonical / sqlair

Friendly type mapping for SQL databases
Apache License 2.0
17 stars 9 forks source link

Add Iterator to Query #51

Closed Aflynn50 closed 1 year ago

Aflynn50 commented 1 year ago

This PR adds a new function Query.Iter() this returns an Iterator that can be used to iterate over the results. The iterator has the method Next, Decode and Close. The query is run on the database when Query.Iter() is called.