]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Fix pool docs typo
authorJoe Freeman <joe.freeman@bitroot.com>
Wed, 2 Feb 2022 21:22:35 +0000 (21:22 +0000)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 3 Feb 2022 00:30:27 +0000 (00:30 +0000)
docs/advanced/pool.rst

index f8569574eb9b838589b7fc4ffbf8defdfced0a7e..0b2b0a8d39901c6593ad7b50a11df7827d3cd13e 100644 (file)
@@ -38,7 +38,7 @@ other functions, modules, threads to use it::
     from .db import pool
 
     def my_function():
-        with poolconnection() as conn:
+        with pool.connection() as conn:
             conn.execute(...)
 
 Ideally you may want to call `~ConnectionPool.close()` when the use of the