summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm/scoping.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/orm/scoping.py')
-rw-r--r--lib/sqlalchemy/orm/scoping.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/sqlalchemy/orm/scoping.py b/lib/sqlalchemy/orm/scoping.py
index af518e407..c1a5fd577 100644
--- a/lib/sqlalchemy/orm/scoping.py
+++ b/lib/sqlalchemy/orm/scoping.py
@@ -22,9 +22,13 @@ class ScopedSession(object):
Usage::
- Session = scoped_session(sessionmaker(autoflush=True))
+ Session = scoped_session(sessionmaker())
- ... use session normally.
+ ... use Session normally.
+
+ The internal registry is accessible as well,
+ and by default is an instance of :class:`.ThreadLocalRegistry`.
+
"""
@@ -89,6 +93,7 @@ class ScopedSession(object):
class when called.
e.g.::
+
Session = scoped_session(sessionmaker())
class MyClass(object):