On Friday 14 September 2007 14:41:14 Hermann Himmelbauer wrote: > Hi, > In one of my database tables I have a varchar that is mapped to an > object with a string attribute. This specific varchar should > however be represented by a certain Python object, therefore it > would be very handy, if there would be a way to automatically > load/represent this data. Is there support from SQLAlchemy? > > I thought about writing a property for my attribute but I'm unsure > if this is compatible with SQLAlchemy, as SA sets up its own > properties for attributes when the object is mapped, so probably > mine would be overwritten? > > Best Regards, > Hermann i guess the property for xx would store the data into some extra attr say _xx, which one u can map DB-wise. So the xx will be a facade to the real DB _xx column. u ca also have additional mapping of attr-names: mapper-name vs column-name vs column-db-name.
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---