I'm using SQLAlchemy to record the sql executed (using echo=True
) so that I can then import that file directly (after a bit of clean-up). Problem is, the file is full of this:
INSERT INTO professors (department_id, id, first_name, last_name,
preferred_name, email_alias, user_id, created_at, updated_at, middle_name)
VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
So clearly, it's not giving me the final form of the string which I need.