def sqlformat(sql): ''' Format SQL queries. ''' return sqlparse.format(str(sql), reindent=True, wrap_after=120)