diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-02-11 10:52:00 -0500 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-02-11 10:52:00 -0500 |
| commit | 8c1bf8cdd0f510173534aeccda45a44bb7ed4626 (patch) | |
| tree | 1fbfd1a56250efe743cbd8afd0c85d06f8cf85d7 /lib/sqlalchemy | |
| parent | b0be3ef1b220edc64b3a72f3cf390f86eef8a7f9 (diff) | |
| download | sqlalchemy-8c1bf8cdd0f510173534aeccda45a44bb7ed4626.tar.gz | |
document identity_map
Diffstat (limited to 'lib/sqlalchemy')
| -rw-r--r-- | lib/sqlalchemy/orm/session.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/sqlalchemy/orm/session.py b/lib/sqlalchemy/orm/session.py index 4299290d0..ba6ceaeec 100644 --- a/lib/sqlalchemy/orm/session.py +++ b/lib/sqlalchemy/orm/session.py @@ -1772,6 +1772,19 @@ class Session(object): return self.transaction and self.transaction.is_active + identity_map = None + """A mapping of object identities to objects themselves. + + Iterating through ``Session.identity_map.values()`` provides + access to the full set of persistent objects (i.e., those + that have row identity) currently in the session. + + See also: + + :func:`.identity_key` - operations involving identity keys. + + """ + @property def _dirty_states(self): """The set of all persistent states considered dirty. |
