[sqlalchemy] Re: Required properties of first arg to bulk_insert_mappings

2017-11-20 Thread Skip Montanaro
I've narrowed down my problem space a bit. Consider this simple code: from sqlalchemy import (Integer, String, Column, MetaData, create_engine) from sqlalchemy.orm import sessionmaker from sqlalchemy.ext.declarative import declarative_base METADATA = MetaData() BASE =

[sqlalchemy] Required properties of first arg to bulk_insert_mappings

2017-11-20 Thread Skip Montanaro
I'm trying to insert a list of dictionaries into a table using bulk_insert_mappings(). When I call it, I get this error: AttributeError: 'Table' object has no attribute 'mapper' I'm having trouble (in general) figuring out which of the various ways of specifying my table(s) are appropriate.