After looking inside this object, it became clear, that it was not creating any columns. So, the generated query was: INSERT INTO project_interviewer () VALUES ().
I have made this to work with:
table = Table(fixture['table'], metadata,
autoload=True, autoload_with=db.engine)
for record in fixture['records']:
# there was an issue 'default engine does not support multi-line inserts':
conn.execute(table.insert(), record)
I have faced an issue with Flask's
db.Table
. Here's my setup:Now I am trying to load project from the fixtures:
It was not loading. After some digging I have found out that the issue was here:
After looking inside this object, it became clear, that it was not creating any columns. So, the generated query was:
INSERT INTO project_interviewer () VALUES ()
.I have made this to work with:
Maybe I have missed something?