API v1

Database Reference

Connecting

Connect to the StyleHub PostgreSQL database through the Transaction Pooler on port 6543.

Use the pooler, not port 5432

The direct connection on port 5432 is IPv6-only and is often unreachable from home, campus and corporate networks. Always connect through the Transaction Pooler on port 6543.

Connection string#

Format
postgresql://<role>.<project-ref>:<password>@aws-0-<region>.pooler.supabase.com:6543/postgres

With the read-only role this becomes:

Example
postgresql://student_ro.xqqpbuhqvbbgyevwmktp:<password>@aws-0-<region>.pooler.supabase.com:6543/postgres

Connection parameters#

SettingValue
Hostaws-0-<region>.pooler.supabase.com
Port6543
Databasepostgres
Userstudent_ro.xqqpbuhqvbbgyevwmktp
PasswordProvided by your instructor
SSL moderequire

Examples#

psql "postgresql://student_ro.xqqpbuhqvbbgyevwmktp:<password>@aws-0-<region>.pooler.supabase.com:6543/postgres?sslmode=require"

Transaction pooler notes#

In transaction mode each statement may run on a different server connection, so session-level features are unavailable: named prepared statements, SET for session variables, LISTEN/NOTIFY and advisory locks. If your driver uses prepared statements by default (e.g. psycopg 3), disable them.

© 2026 StyleHub · Developer Platform