- changed component to documentation
- changed title to document table.constraints
- marked as major
- changed milestone to 0.9.xx
document table.constraints
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)
-
repo owner -
repo owner also the ForeignKey objects, which are the components of a ForeignKeyConstraint, are at http://docs.sqlalchemy.org/en/rel_0_9/core/metadata.html?highlight=table#sqlalchemy.schema.Table.foreign_keys.
-
Account Deleted 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
andconstraints
ifforeign_keys
is mentioned in the docs. At least a sentence or 2 in the tutorial. -
repo owner I'll definitely add docstrings, I do that by placing a class-level variable with a doc that is set to
None
. Carry on ! -
repo owner - changed milestone to 1.0.xx
-
repo owner - changed milestone to 1.x.xx
- edited description
- Log in to comment
its table.constraints. seems like there's no docstring for that since its just an instance level attribute.