We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6240663 commit 0a77938Copy full SHA for 0a77938
frameworks/Python/aiohttp/app/main.py
@@ -27,14 +27,15 @@ def pg_dsn(dialect=None) -> str:
27
"""
28
:return: DSN url suitable for sqlalchemy and aiopg.
29
30
- return str(URL.create(
+ url = URL.create(
31
database='hello_world',
32
password=os.getenv('PGPASS', 'benchmarkdbpass'),
33
host='tfb-database',
34
port='5432',
35
username=os.getenv('PGUSER', 'benchmarkdbuser'),
36
drivername='postgresql+{}'.format(dialect) if dialect else 'postgresql',
37
- ))
+ )
38
+ return url.render_as_string(hide_password=False)
39
40
41
async def db_ctx(app: web.Application):
0 commit comments