this can only be done as far as the Table object. the mapper() and
declarative base class doesn't have any kind of clone method:
newtable = MyClass.__table__.tometadata(somemetadata)
class MyNewClass(SomeBase):
__table__ = newtable
mg wrote:
>
> Is there any sort of tometadata for the declarative layer in
> sqlalchemy? If I have a declarative class, I want to be able re-create
> that class for another metadata.
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---