diff options
| author | mike bayer <mike_mp@zzzcomputing.com> | 2022-08-17 22:26:05 +0000 |
|---|---|---|
| committer | Gerrit Code Review <gerrit@ci3.zzzcomputing.com> | 2022-08-17 22:26:05 +0000 |
| commit | 0dbbd70909cfe1b7d58efa1b3a03e649e43a6df0 (patch) | |
| tree | 7fdf040d7722caa587cea6c3d1ede6654890889a /lib/sqlalchemy/orm/base.py | |
| parent | 93249b0a41ee4b0ebb4bbe9a549235dc348f9bf7 (diff) | |
| parent | 6370d6b15f52abdbbadca3707e3722b984daff53 (diff) | |
| download | sqlalchemy-0dbbd70909cfe1b7d58efa1b3a03e649e43a6df0.tar.gz | |
Merge "validate mapped collection key is loaded" into main
Diffstat (limited to 'lib/sqlalchemy/orm/base.py')
| -rw-r--r-- | lib/sqlalchemy/orm/base.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/sqlalchemy/orm/base.py b/lib/sqlalchemy/orm/base.py index 66b7b8c2e..47ae99efe 100644 --- a/lib/sqlalchemy/orm/base.py +++ b/lib/sqlalchemy/orm/base.py @@ -209,6 +209,15 @@ EXT_CONTINUE, EXT_STOP, EXT_SKIP, NO_KEY = tuple(EventConstants) class RelationshipDirection(Enum): + """enumeration which indicates the 'direction' of a + :class:`_orm.Relationship`. + + :class:`.RelationshipDirection` is accessible from the + :attr:`_orm.Relationship.direction` attribute of + :class:`_orm.Relationship`. + + """ + ONETOMANY = 1 """Indicates the one-to-many direction for a :func:`_orm.relationship`. |
