@contract
    def select_vm_migrations(self, start_time, end_time):
        vm = self.vm_migrations
        sel = select([vm.c.timestamp, vm.c.vm_id]). \
            where(and_(vm.c.timestamp >= start_time,
                       vm.c.timestamp <= end_time)). \
            order_by(vm.c.id.asc())
        return [(x[0], int(x[1])) 
                for x in self.connection.execute(sel).fetchall()]
Select VM migrations.
dataset/ETHPy150Open beloglazov/openstack-neat/utils/db.py/Database.select_vm_migrations