Hi all , I am a sqlalchemy noom , I am using sqlalchemy on top of a
php app(mysql) that actually decides to create a new table in certain
situations . So in one of the queries I have to create and load a
table dynamically. I am doing this in this fashion.
class Z_Current(object):
pass
z_current = Table('z_%s' %result_id , metadata, autoload=True)
try:
class_mapper(Z_Current)
except UnmappedClassError:
mapper(Z_Current,z_current,primary_key = [z_current.c.id])
But I need to clear a mapper to load another table . Is it possible
for me to clear one mapper.
--
A-M-I-T S|S
--
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.