From: Daniele Varrazzo Date: Mon, 12 May 2025 00:44:26 +0000 (+0200) Subject: docs(pool): a proto-only SQLAlchemy url suffices as we are passing a creator X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2Fsqlalchemy-nullpool;p=thirdparty%2Fpsycopg.git docs(pool): a proto-only SQLAlchemy url suffices as we are passing a creator --- diff --git a/docs/advanced/pool.rst b/docs/advanced/pool.rst index 50c06cace..8c84c3554 100644 --- a/docs/advanced/pool.rst +++ b/docs/advanced/pool.rst @@ -470,7 +470,7 @@ For example, the initialization in an async application may look like: # Create a SQLAlchemy engine using the pool just created engine = sqlalchemy.ext.asyncio.create_async_engine( - url=db_url.replace("postgresql://", "postgresql+psycopg://"), + url="postgresql+psycopg://", poolclass=sqlalchemy.pool.NullPool, async_creator=pgpool.getconn, )