@classmethod
def get_query_infos(cls, queries):
    """
        Coerces the list of queries in Django DB object into QueryInfo objects for processing.

        :param queries:
        :return:
        """
    retval = []
    for q in queries:
        qi = cls.QueryInfo()
        qi.sql = cls.sql_id_pattern.sub('= ?', q['sql'])
        qi.time = float(q['time'])
        qi.tb = q.get('tb')
        retval.append(qi)
    return retval
