Spaces:
Paused
Paused
| import psycopg2 | |
| conn = psycopg2.connect("postgresql://postgres:9876607718Ppp@db.xxmvhvxeglsjbewlouqg.supabase.co:5432/postgres") | |
| cur = conn.cursor() | |
| try: | |
| cur.execute("SELECT id FROM auth.users LIMIT 1;") | |
| user = cur.fetchone() | |
| if user: | |
| print(f"User ID: {user[0]}") | |
| else: | |
| print("No users found") | |
| except Exception as e: | |
| print(f"Error: {e}") | |