summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2007-08-09 19:51:36 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2007-08-09 19:51:36 +0000
commitb0253eb9b5eca87fde3f9341e403985e1dcf74c4 (patch)
tree8ff8d3a37b8c2adc084099fcca0008d6cc7db5b9 /doc
parentbdd780dd88950106df09f81e539067f3bd98a06c (diff)
downloadsqlalchemy-b0253eb9b5eca87fde3f9341e403985e1dcf74c4.tar.gz
- added 'object_session' as classlevel method to Session
- moved 'identity_key' to be a classmethod on Session - some docstrings - merged r3229 from 0.3 branch to unconditonally quote schemaname in PG-reflected default - name fixes in dynamic unit test
Diffstat (limited to 'doc')
-rw-r--r--doc/build/content/session.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/build/content/session.txt b/doc/build/content/session.txt
index 7fb998ab9..938815c4c 100644
--- a/doc/build/content/session.txt
+++ b/doc/build/content/session.txt
@@ -1,4 +1,4 @@
-Using the Session {@name=unitofwork}
+ Using the Session {@name=unitofwork}
============
The [Mapper](rel:advdatamapping) is the entrypoint to the configurational API of the SQLAlchemy object relational mapper. But the primary object one works with when using the ORM is the [Session](rel:docstrings_sqlalchemy.orm.session_Session).
@@ -156,9 +156,10 @@ Knowing these states is important, since the `Session` tries to be strict about
* How can I get the `Session` for a certain object ?
+ Use the `object_session()` classmethod available on `Session`:
+
{python}
- from sqlalchemy.orm import object_session
- session = object_session(someobject)
+ session = Session.object_session(someobject)
* Is the session threadsafe ?