document table.constraints

Issue #2902 new
Anonymous created an issue

I was trying to temporarily disable foreign keys for replication, but for the life of me couldn't find how to get the set of ForeignKeyConstraint objects from either Inspector, MetaData, or Table, for the longest time. There's nothing on it from google.

Perhaps it should be exposed in the docs. Are there any reason it is private?

Comments (6)

  1. Anonymous

    I see. When I filed the ticket it was very late night/early morning so my head wasn't exactly straight. Should've looked at the instance level attributes.

    But anyhow it seems to make sense to expose things like indexes and constraints if foreign_keys is mentioned in the docs. At least a sentence or 2 in the tutorial.

  2. Log in to comment