I have a PickleType
type field in the table, into which I load my class with the __eq__()
method of restarting comparison, how can I make filter(Table.column == obj)
in sqlalchemy?
PS So
session.query(Table).filter(Table.column == obj)
does not work, alchemy seems to call the sql operator, not __eq__
.