Spaces:
Sleeping
Sleeping
Delete test_db_conn.py with huggingface_hub
Browse files123456789101112131415import osfrom sqlalchemy import create_engine, inspectfrom dotenv import load_dotenv
load_dotenv()db_url = os.getenv('DATABASE_URL')print(f"Connecting to: {db_url.split('@')[-1] if db_url else 'None'}")
try: engine = create_engine(db_url) inspector = inspect(engine) tables = inspector.get_table_names() print(f"SUCCESS: Connected to Supabase Session Pooler! Tables: {tables}")except Exception as e: print(f"FAILED: Connection failed: {e}")test_db_conn.pyDeleted-15