File size: 452 Bytes
bcf46c3
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
import psycopg2

conn = psycopg2.connect("postgresql://postgres:9876607718Ppp@db.xxmvhvxeglsjbewlouqg.supabase.co:5432/postgres")
cur = conn.cursor()

try:
    cur.execute("INSERT INTO users (id, email, tier, monthly_limit, current_usage) VALUES ('97232518-5451-48b5-9201-6b86f5a4afb3', 'benchmark@test.com', 'enterprise', 100000, 0) ON CONFLICT DO NOTHING;")
    conn.commit()
    print("User created")
except Exception as e:
    print(f"Error: {e}")