question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Better defaults for Postgres connection URL

See original GitHub issue

Right 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:open
  • Created 4 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
matthewmuellercommented, Sep 24, 2020

To clarify the scope. I’d suggest the following changes for Postgres:

Given postgres://username:password@host:port/database?schema=public

  1. username defaults to your operating system username
  2. password defaults to an empty string (we already do this.)
  3. schema defaults to public
  4. port defaults to 5432
1reaction
janpiocommented, Dec 26, 2019

Not sure, just thinking through what it means.

I agree that the handling of connection strings has to be improved.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found