def _sqlite_dump(self):
    path = self.options['sql_path']
    if os.path.exists(path):
        os.remove(path)
    with open(path, 'w') as f:
        for line in self.session.connection().connection.iterdump():
            f.write((line + '\n'))
def _sqlite_dump(self):
    path = self.options['sql_path']
    if os.path.exists(path):
        os.remove(path)
    with open(path, 'w') as f:
        for line in self.session.connection().connection.iterdump():
            f.write((line + '\n'))