You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Evaluate if we should return iterable instead of array in some cases #60
Evaluate if we should return iterable instead of array in some cases
It may make more sense to add new methods that return iterable instead of changing existing methods. e.g. findAllIterator() or something instead of changing findAll() to return an array.
I don’t think adding methods to the interface is a good idea, as it requires duplicating logic. IMO the only reason not to do it is “it’s a tough BC break”. However, I don’t think that’s a valid argument as breaking BC again is difficult for a package this low in the dependency food chain.
I don't see the point of doing this, as long as the PDO Driver doesn't return an iterator.
When querying a DB, the whole resultset is returned at once and I don't see why we should create an iterator out of it, it's already loaded in the memory.
findAllIterator()or something instead of changingfindAll()to return an array.