Better defaults for Postgres connection URL
See original GitHub issueRight now we require:
postgresql://m@localhost:5432/prisma-demo?schema=public
This can be expressed in Postgres’ built-in psql
with:
psql prisma-demo
We should provide the query engine with the same defaults that the psql supports.
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
What is the format for the PostgreSQL connection string / URL?
the connection url for postgres syntax: "Server=host ipaddress;Port=5432;Database=dbname;User Id=userid;Password=password;. example:
Read more >34.1. Database Connection Control Functions - PostgreSQL
Defaults to be the same as the operating system name of the user running the application. Password to be used if the server...
Read more >Understanding connection URI strings in PostgreSQL - Prisma
Before we begin, we should mention that PostgreSQL connection URIs expect percent-encoded values. This means that any characters that have a special meaning ......
Read more >PostgreSQL JDBC Driver and URL Information - RazorSQL
These drivers can be obtained from PostgreSQL. See the PostgreSQL web site for more information. ... The default port for PostgreSQL is 5432....
Read more >PostgreSQL Driver Configuration Properties
OTD Wizard: Database Connection Information ; URL Connection String. jdbc:postgresql:// server-name : server-port / database-name. Note –. NOTE: Default server ...
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
To clarify the scope. I’d suggest the following changes for Postgres:
Given
postgres://username:password@host:port/database?schema=public
username
defaults to your operating system usernamepassword
defaults to an empty string (we already do this.)schema
defaults to publicport
defaults to 5432Not sure, just thinking through what it means.
I agree that the handling of connection strings has to be improved.