Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions asyncpg/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -1966,7 +1966,7 @@ async def connect(dsn=None, *,
... )
... con = await asyncpg.connect(user='postgres', ssl=sslctx)
... await con.close()
>>> asyncio.run(run())
>>> asyncio.run(main())

Example of programmatic SSL context configuration that is equivalent
to ``sslmode=require`` (no server certificate or host verification):
Expand All @@ -1983,7 +1983,7 @@ async def connect(dsn=None, *,
... sslctx.verify_mode = ssl.CERT_NONE
... con = await asyncpg.connect(user='postgres', ssl=sslctx)
... await con.close()
>>> asyncio.run(run())
>>> asyncio.run(main())

:param bool direct_tls:
Pass ``True`` to skip PostgreSQL STARTTLS mode and perform a direct
Expand Down