hisham-cmd commited on
Commit
2c5f0db
·
verified ·
1 Parent(s): b79d949

Delete test_db_conn.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. test_db_conn.py +0 -15
test_db_conn.py DELETED
@@ -1,15 +0,0 @@
1
- import os
2
- from sqlalchemy import create_engine, inspect
3
- from dotenv import load_dotenv
4
-
5
- load_dotenv()
6
- db_url = os.getenv('DATABASE_URL')
7
- print(f"Connecting to: {db_url.split('@')[-1] if db_url else 'None'}")
8
-
9
- try:
10
- engine = create_engine(db_url)
11
- inspector = inspect(engine)
12
- tables = inspector.get_table_names()
13
- print(f"SUCCESS: Connected to Supabase Session Pooler! Tables: {tables}")
14
- except Exception as e:
15
- print(f"FAILED: Connection failed: {e}")