]> 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:43:15 +0000 (19:43 -0500)
eng -> engine

Fixes: #4526
Change-Id: If117099b8521e15887ae916a5dbfcfa0b7cd594b
(cherry picked from commit 66373c58118dc70ef59ff60c0516ef158966c47b)

doc/build/core/pooling.rst

index b5c748a528c66a6d650e013c2691ae53f7fd9226..a7512edd94c17358e34858a01f61263a154f361d 100644 (file)
@@ -378,12 +378,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)
@@ -396,7 +396,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):