Wednesday 7 August 2013

Do database access generators return new rows that are added while using them?

Do database access generators return new rows that are added while using
them?

More specifically, if I iterate through a database using a python db api
which emulates a generator giving me one row at a time, will the generator
also return new rows that I create in the meantime?
My guess would be yes as I think the implementation of such a generator
would involve a cursor that simply goes to the next row whenever a new row
is requested.

No comments:

Post a Comment