def run_query(self, query, new_line=True):
if (self.destructive_warning and<EOL>confirm_destructive_query(query) is False):<EOL><INDENT>message = '<STR_LIT>'<EOL>click.echo(message)<EOL>return<EOL><DEDENT>results = self.sqlexecute.run(query)<EOL>for result in results:<EOL><INDENT>title, rows, headers, _ = result<EOL>self.formatter.query = query<EOL>output = self.format_output(title, rows, headers)<EOL>for line in output:<EOL><INDENT>click.echo(line, nl=new_line)<EOL><DEDENT><DEDENT>
Runs *query*.