Add more examples for primary_keys

This commit is contained in:
Konsta Vesterinen
2014-04-21 11:44:00 +03:00
parent 56f1fa1bb2
commit c5918545e3

View File

@@ -30,6 +30,12 @@ def primary_keys(mixed):
primary_keys(User.__table__)
primary_keys(User.__mapper__)
primary_keys(sa.orm.aliased(User))
primary_keys(sa.orm.alised(User.__table__))
.. versionchanged: 0.25.3
Made the function return an ordered dictionary instead of generator.