diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-01-02 23:13:02 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-01-02 23:13:02 +0000 |
commit | ebe83b95ad24ae72a151a5f5fdd01a44ceccfef1 (patch) | |
tree | c0e3a9ccc1044ff7abd4516d47d7583f7fb2095e /lib/sqlalchemy/databases/postgres.py | |
parent | e12075efa8b5eb45a918cc150218921d88dc2bec (diff) | |
download | sqlalchemy-ebe83b95ad24ae72a151a5f5fdd01a44ceccfef1.tar.gz |
- added very rudimentary yielding iterator behavior to Query. Call
query.yield_per(<number of rows>) and evaluate the Query in an
iterative context; every collection of N rows will be packaged up
and yielded. Use this method with extreme caution since it does
not attempt to reconcile eagerly loaded collections across
result batch boundaries, nor will it behave nicely if the same
instance occurs in more than one batch. This means that an eagerly
loaded collection will get cleared out if it's referenced in more than
one batch, and in all cases attributes will be overwritten on instances
that occur in more than one batch.
Diffstat (limited to 'lib/sqlalchemy/databases/postgres.py')
0 files changed, 0 insertions, 0 deletions