summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/sqlalchemy/orm/session.py13
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.