Skip to content

Commit

Permalink
Removed import_script method
Browse files Browse the repository at this point in the history
  • Loading branch information
sfneal committed Nov 1, 2018
1 parent c6c7e7f commit 19458d7
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions mysql/toolkit/components/operations/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,3 @@ def dump_database(self, file_path, database=None, tables=None):
file_path = file_path if file_path.endswith('.sql') else file_path + '.sql'
write_text(dump, file_path)
return file_path

def import_script(self, script_path):
"""Load a SQL script to memory and then execute all commands."""
with open('dump.sql', 'r') as dump:
s = dump.read()
self.sql.execute(s)

0 comments on commit 19458d7

Please sign in to comment.