def print_queries():
 for query in connection.queries:
  print (query['sql'] + ';\n')

def print_queries ( ) : for query in connection . queries : print ( query [ 'sql' ] + ';\n' )
print all sql queries executed so far .