def _query_items_simple(self, firebase_query): snapshots = self._stream_ref(firebase_query) results = [] for snapshot in snapshots: wrapper = ResultWrapper.from_couchdb_json(self.value_from_snapshot(snapshot)) results.append(GenericObject.from_row(self, wrapper)) return results
def _query_items_simple(self, firebase_query): snapshots = firebase_query.get() results = [] for snapshot in snapshots: wrapper = ResultWrapper.from_couchdb_json(self.value_from_snapshot(snapshot)) results.append(GenericObject.from_row(self, wrapper)) return results
def query_items_iterator(self, firebase_query, batch_size, order_by=u'_id'): for snapshot in self.query_snapshots_iterator(firebase_query, batch_size=batch_size, order_by=order_by): wrapper = ResultWrapper.from_couchdb_json( self.value_from_snapshot(snapshot)) obj = GenericObject.from_row(self, wrapper) yield obj
def query_items_iterator(self, firebase_query, batch_size, order_by=u'_id'): for snapshot in self.query_snapshots_iterator(firebase_query, batch_size=batch_size, order_by=order_by): wrapper = ResultWrapper.from_couchdb_json(self.value_from_snapshot(snapshot)) obj = GenericObject.from_row(self, wrapper) yield obj