'Yields all pairs of (id, value) from the result table.'

def AllEntities(self):

    conn = sqlite3.connect(self.db_filename, isolation_level=None)
    cursor = conn.cursor()
    cursor.execute('select    id,    value    from    result    order    by    sort_key,    id')
    for (unused_entity_id, entity) in cursor:
        entity_proto = entity_pb.EntityProto(contents=entity)
        (yield datastore.Entity._FromPb(entity_proto))
