Edit: I can definitely hit the DB with psql, so I...
# orm-help
m
Edit: I can definitely hit the DB with psql, so I'm pretty sure it has to be a string parsing issue with Prisma. For my schema, there's the host section:
host=/XXX/XXXX:XXXX:XXXX
- do all of the characters there haev to be percent-encoded?
👀 1
a
Hey Michael, I would definitely try percent encoding if your string isn’t working. You can work off this table as a reference.
m
Thanks @Austin! So essentially, there are sections of the string that are SUPPOSED to be in there - those don't need percent-encoding. But everything else probably does? I actually think it's working now. Here's Prisma's example, and I note of course that it has slashes, colons, at, etc.
postgresql://janedoe:mypassword@localhost:5432/mydb?schema=sample"
a
Ah yeah, the percent encoding only applies to connection string specific values, not the URL parts of the string. So username, password, hostname, database name, query parameters.