On Sep 8, 2009, at 7:01 PM, Wolodja Wentland wrote:
>
> Any tips on how to dynamically create *Constraints? The inline_ddl
> idea
> does not work and doing something like:
how about engine.execute("drop constraint pkey_%s" % table.name) ?
since PG is using a naming scheme for primary key constraints.
Adding the name of the PK to reflection is something that can be added
to PG's reflection sure but this is just to solve your immediate issue.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---