There was an error while loading. Please reload this page.
1 parent 6289661 commit 76853d4Copy full SHA for 76853d4
examples/asyncpg_items.py
@@ -23,9 +23,6 @@ async def async_main():
23
POSTGRES_PASSWORD = os.environ["POSTGRES_PASSWORD"]
24
25
DATABASE_URI = f"postgresql://{POSTGRES_USERNAME}:{POSTGRES_PASSWORD}@{POSTGRES_HOST}/{POSTGRES_DATABASE}"
26
- # Specify SSL mode if needed
27
- if POSTGRES_SSL := os.environ.get("POSTGRES_SSL"):
28
- DATABASE_URI += f"?ssl={POSTGRES_SSL}"
29
30
conn = await asyncpg.connect(DATABASE_URI)
31
0 commit comments