On Jul 18, 2007, at 10:24 AM, Bertrand Croq wrote:

>
> Hi,
>
> Is it possible to reinitialize some mappers once a column has been  
> added to a
> mapped table using the_table.append_column() ?
>
> Thanks.

a single property can be added to a mapper using mapper.add_property 
().  this can be used for column or relation based properties, and if  
it occurs after mappers have been compiled, it should compile itself.

note that this compile-a-single-property process is much more  
expensive than the mass-load of columns which occurs normally when a  
mapper first compiles.  add_property() as well as table.append_column 
() also do not have a lot of unit tests so YMMV.






--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to