I am using automap_base to reflect a table. metadata = MetaData() metadata.reflect(bind=engine, only=['hosts']) automap = automap_base(metadata=metadata) automap.prepare()
Hosts = automap.classes.hosts The mac_address column in Hosts is binary and would like to to replace the mac_address with some sort of getter/setter to decode/encode the address. I have not found an example of doing this with an automapped table. Is there a easy way to do this? -- 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 https://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/d/optout.