Sadeep Sachintha commited on
Commit
59e26cd
·
1 Parent(s): 45f56dc

feat: add database connectivity test script for Supabase PostgreSQL instance

Browse files
Files changed (1) hide show
  1. scratch/test_db_conn.py +1 -1
scratch/test_db_conn.py CHANGED
@@ -3,7 +3,7 @@ from sqlalchemy.ext.asyncio import create_async_engine
3
 
4
  async def test():
5
  try:
6
- engine = create_async_engine('postgresql+asyncpg://postgres.crysvmpozojurmskepyy:%21AT5%2C%238Phrs%2B6%216@aws-0-ap-southeast-1.pooler.supabase.com:5432/postgres')
7
  async with engine.begin() as conn:
8
  print("CONNECTION SUCCESSFUL")
9
  except Exception as e:
 
3
 
4
  async def test():
5
  try:
6
+ engine = create_async_engine('postgresql+asyncpg://postgres.crysvmpozojurmskepyy:%21AT5%2C%238Phrs%2B6%216@aws-1-ap-southeast-1.pooler.supabase.com:6543/postgres')
7
  async with engine.begin() as conn:
8
  print("CONNECTION SUCCESSFUL")
9
  except Exception as e: