]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Fix pooling typo
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 6 Mar 2019 00:42:41 +0000 (19:42 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 6 Mar 2019 00:42:41 +0000 (19:42 -0500)
eng -> engine

Fixes: #4526
Change-Id: If117099b8521e15887ae916a5dbfcfa0b7cd594b

doc/build/core/pooling.rst

index e5abf92ff6703bb9ee46ef5680d2e891f6eea86f..181ab6b540b167079d208b99ea6bda07a14da93e 100644 (file)
@@ -450,12 +450,12 @@ connections from the pool so that it makes all new ones.  Below is
 a simple version using ``multiprocessing.Process``, but this idea
 should be adapted to the style of forking in use::
 
-    eng = create_engine("...")
+    engine = create_engine("...")
 
     def run_in_process():
-      eng.dispose()
+      engine.dispose()
 
-      with eng.connect() as conn:
+      with engine.connect() as conn:
           conn.execute("...")
 
     p = Process(target=run_in_process)
@@ -468,7 +468,7 @@ This is a little more magical but probably more foolproof::
     from sqlalchemy import exc
     import os
 
-    eng = create_engine("...")
+    engine = create_engine("...")
 
     @event.listens_for(engine, "connect")
     def connect(dbapi_connection, connection_record):