]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
typo
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 17 Jul 2007 22:50:17 +0000 (22:50 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 17 Jul 2007 22:50:17 +0000 (22:50 +0000)
doc/build/content/unitofwork.txt

index f079407f1ceee6774ba41739ac78b1016906bcdf..ef0118901143c621aabd9cbd119f5faf7863bffc 100644 (file)
@@ -482,7 +482,7 @@ It's safe to use a `Session` which is transactional or autoflushing, as well as
 When using the `threadlocal` engine context, things are that much easier; the `Session` uses the same connection/transaction as everyone else in the current thread, whether or not you explicitly bind it:
 
     {python}
-    engine = create_engine('foo://', threadlocal=True)
+    engine = create_engine('postgres://mydb', strategy="threadlocal")
     engine.begin()
     
     sess = create_session()  # session takes place in the transaction like everyone else