opticparse-python / check_user.py
Nanny7's picture
initial deploy
bcf46c3
Raw
History Blame Contribute Delete
376 Bytes
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}")