canonical / sqlair

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

Return ErrNoRows when GetAll finds no results #138

Closed Aflynn50 closed 7 months ago

Aflynn50 commented 8 months ago

If GetAll finds no results in the database it is currently a no-op. In the interests of safety it would be better if this function returned the ErrNoRows error. If no results is not an error case the user can explicitly match against and ignore the error.