Daniel Robbins wrote: > Hi All, > > How does one define a composite index using declarative? > > Quick example? Couldn't find any examples in the docs or online. > > In my particular case, "id" will be a primary key, and I'd like a > composite UniqueConstraint on "group_id" and "name", and a composite > index on "group_id" (pos 1) and "name" (pos 2). > > Thanks and Regards,
we have some index examples at http://www.sqlalchemy.org/docs/metadata.html#indexes . the Index is not related to declarative and is specified separately. > > -Daniel > > -- > 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. > > -- 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.
