psycopg.git / summary / log / commit / refs
commit f531327eb50324cb87aca068fb404adb905f14d3
Author: Joe Freeman <joe.freeman@bitroot.com>
Commit: Daniele Varrazzo <daniele.varrazzo@gmail.com>
Date: Wed Feb 02 21:22:35 2022 +0000
Fix pool docs typo
docs/advanced/pool.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/advanced/pool.rst b/docs/advanced/pool.rst
index f8569574..0b2b0a8d 100644
--- a/docs/advanced/pool.rst
+++ b/docs/advanced/pool.rst
@@ -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
[parent: 008a6efed97f]