File size: 376 Bytes
bcf46c3
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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}")