Not sure about other DBs, but according to pg docs [1], it's preferred to 
make a unique constraint (and know that you get the index for free) versus 
creating a unique index. 

Knowing this for pg, you can just do unique=True and get the constraint and 
the index. I realize this is a very small implementation detail that 
probably doesn't matter but wanted to surface it here in case it's 
something you might want to change?

[1] http://www.postgresql.org/docs/9.0/static/indexes-unique.html

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to