Wraps the datastore iterator to return Model instances.
The datastore returns entities. We wrap the datastore iterator to
return Model instances instead.
def google.appengine.ext.db._QueryIterator.__init__ |
( |
|
self, |
|
|
|
model_class, |
|
|
|
datastore_iterator |
|
) |
| |
Iterator constructor
Args:
model_class: Model class from which entities are constructed.
datastore_iterator: Underlying datastore iterator.
def google.appengine.ext.db._QueryIterator.__iter__ |
( |
|
self | ) |
|
Iterator on self.
Returns:
Self.
def google.appengine.ext.db._QueryIterator.next |
( |
|
self | ) |
|
Get next Model instance in query results.
Returns:
Next model instance.
Raises:
StopIteration when there are no more results in query.
The documentation for this class was generated from the following file:
- code/googleappengine-read-only/python/google/appengine/ext/db/__init__.py