(self, args)
| 1759 | return self.do_source(args) |
| 1760 | |
| 1761 | def do_source(self, args): |
| 1762 | try: |
| 1763 | cmd_file = open(args, "r") |
| 1764 | except Exception as e: |
| 1765 | print("Error opening file '%s': %s" % (args, e), file=sys.stderr) |
| 1766 | return CmdStatus.ERROR |
| 1767 | if self.execute_query_list(parse_query_text(cmd_file.read())): |
| 1768 | return CmdStatus.SUCCESS |
| 1769 | else: |
| 1770 | return CmdStatus.ERROR |
| 1771 | |
| 1772 | def postloop(self): |
| 1773 | """Save session commands in history.""" |
no test coverage detected