Skip to content

Commit 7c77c33

Browse files
committed
Add a note that DSN components must be URL-quoted
Closes: #598.
1 parent 0d23182 commit 7c77c33

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

asyncpg/connection.py

+5
Original file line numberDiff line numberDiff line change
@@ -1773,6 +1773,11 @@ async def connect(dsn=None, *,
17731773
Unlike libpq, asyncpg will treat unrecognized options
17741774
as `server settings`_ to be used for the connection.
17751775
1776+
.. note::
1777+
1778+
The URI must be *valid*, which means that all components must
1779+
be properly quoted with :py:func:`urllib.parse.quote`.
1780+
17761781
:param host:
17771782
Database host address as one of the following:
17781783

0 commit comments

Comments
 (0)