metadata = MetaData() metadata.reflect(engine) Base = automap_base(metadata=metadata) Base.prepare()
That did a real nice job but I wanted to skip some columns from being mapped (binary types actually at the moment) I see metadata.tables['TableName'].columns to be ImmutableColumnCollection so there's probably no way to exclude column after reflect Is there a way to skip some columns from being reflected? Other option I can think of is insp = reflection.Inspector.from_engine(engine) and do the mapping to declarative manually. Any thoughts on that? -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+unsubscr...@googlegroups.com. To post to this group, send email to sqlalchemy@googlegroups.com. Visit this group at http://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/d/optout.