Processes a query string and outputs to file or terminal
(self, text)
| 367 | return output |
| 368 | |
| 369 | def execute_query(self, text): |
| 370 | """ Processes a query string and outputs to file or terminal """ |
| 371 | if self.interactive_mode: |
| 372 | output = self._execute_interactive_command(text) |
| 373 | else: |
| 374 | # non-interactive mode |
| 375 | output, _ = self._evaluate_command(text) |
| 376 | |
| 377 | self._output_query(output) |
| 378 | return output |
| 379 | |
| 380 | def _output_query(self, output): |
| 381 | """ Specifies how query output is handled """ |