rudiedirkx/db_generic — Issue #1: Have fetch_by_field return an Iterator
Author: rudiedirkx
Created: 2012-02-29 00:18:30+00:00
State: open

`->fetch_fields` is slim.

`->fetch_by_field` can be huge. Even huger than `->fetch`. If it were to return an iterator, the objects could be read when necessary, like `->fetch`. The big change will be in the `Result` class. Probably another option to Result: `by_field` or something.

The iterator can return 'live' record values as keys, so that shouldn't be the problem. (See The Titelator in tests/iterator_keys.php.)