diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2019-03-05 19:42:41 -0500 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2019-03-05 19:42:41 -0500 |
| commit | 66373c58118dc70ef59ff60c0516ef158966c47b (patch) | |
| tree | 8912713097b9fc6dedb16afe0bf790fc1976a0ac /doc | |
| parent | 62bc03c51ba60c11772b751670aeab02bacd32fd (diff) | |
| download | sqlalchemy-66373c58118dc70ef59ff60c0516ef158966c47b.tar.gz | |
Fix pooling typo
eng -> engine
Fixes: #4526
Change-Id: If117099b8521e15887ae916a5dbfcfa0b7cd594b
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/build/core/pooling.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/build/core/pooling.rst b/doc/build/core/pooling.rst index e5abf92ff..181ab6b54 100644 --- a/doc/build/core/pooling.rst +++ b/doc/build/core/pooling.rst @@ -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): |
