Add psql command to connection strings section in database settings
See original GitHub issueWe show Postgres URI as “PSQL connection string”. It is possible to connect from psql using URI, but:
- This psql connection option is not documented so many users may not know about it.
- It makes a password visible when you paste it.
- It does not work for some passwords (I have just accidentally discovered that).
I would like to have a copiable psql command like the following:
psql -h db.[PROJECT_REF].supabase.co -p 5432 -d postgres -U postgres
So we may consider adding separate sections with PSQL command and URI like the following:
psql:
psql -h db.{PROJECT_REF}.supabase.co -p 5432 -d postgres -U postgres
URI:
postgresql://postgres:[YOUR-PASSWORD]@db.[PROJECT_REF].supabase.co:5432/postgres
Golang:
...
JDBC:
...
...
Database settings page: https://app.supabase.io/project/[PROJECT_REF]/settings/database
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (12 by maintainers)
Top Results From Across the Web
34.1. Database Connection Control Functions - PostgreSQL
This function opens a new database connection using the parameters taken from the string conninfo . The passed string can be empty to...
Read more >Connecting to PostgreSQL databases | Prisma's Data Guide
Before you can manage your data with PostgreSQL, you need to be able to connect to the database server. In this guide, we'll...
Read more >How do you add connection options to PSQL? - Stack Overflow
postgres =# \conninfo You are connected to database "postgres" as user "postgres" on host "localhost" at port "5432".
Read more >Postgres Connection Strings and psql - The Art of PostgreSQL
When it comes to using psql though, another form of connection string is introduced, with command line options -h -p -U and environment ......
Read more >Connection String Parameters | Npgsql Documentation
To connect to a database, the application provides a connection string which specifies parameters such as the host, the username, the password, etc....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks @Isaiah-Hamilton
@imskr you have to type the link manually to get to the settings page that you want for local development. Link for general settings.