]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
correct typo in async postgresql uri (#8736)
authorYomain <40139584+yo-main@users.noreply.github.com>
Wed, 2 Nov 2022 20:44:30 +0000 (21:44 +0100)
committerGitHub <noreply@github.com>
Wed, 2 Nov 2022 20:44:30 +0000 (21:44 +0100)
lib/sqlalchemy/ext/asyncio/session.py

index b38574dc8e80ad496dcfd39387427a304bf55b96..e17b729bfac3487d712436906a8acb19e8d57d99 100644 (file)
@@ -1408,7 +1408,7 @@ class async_sessionmaker(Generic[_AS]):
         async def main():
             # an AsyncEngine, which the AsyncSession will use for connection
             # resources
-            engine = create_async_engine('postgresql+asycncpg://scott:tiger@localhost/')
+            engine = create_async_engine('postgresql+asyncpg://scott:tiger@localhost/')
 
             AsyncSession = async_sessionmaker(engine)