All my attempts to create a 'UniqueConstraint' have failed so far:
I wat to construct the 'UniqueConstraint' object from a description
file dynamicaly.
what I tried:
fields = ['LastName', 'FirstName']
name = 'aconstraint'
UniqueConstraint(*fields, **{'name':name})
results in:
TypeError: __init__() got multiple values for keyword argument 'name'
UniqueConstraint(*([name] + fields))
results in:
'UniqueConstraint' object has no attribute 'columns'
any help how to this is appreciated
robert
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---