@staticmethod
def _render_query(query):
    """
        Return string representing SQL query.
        """
    query = query.compile()
    s = str(query)
    for k, v in query.params.items():
        s = s.replace(':' + k, str(v))
    return s
