P
Prismaโ€ข2mo ago
fgoessler

Connect Prisma Postgres without Prisma Client?

Hi there ๐Ÿ‘‹ I am right now trying out the new Prisma hosted Postgres offering. As I want to migrate a bucnh of data from my existing CockroachDB I'd love to connect with the regular psql tooling or other 3rd party SQL tools to the database. However, it seems to me that with the provided credentials I am currently required to use the Prisma client. I build a workaround for now using a seed.js script and npx prisma db seed but having access to a proper postgres connection would still be great. Am I missing something or is this a current(?) limitation of the Prisma hosted Postgres offering? Thanks! - Flo
8 Replies
RaphaelEtim
RaphaelEtimโ€ข2mo ago
Hi @fgoessler Thank you for trying out Prisma Postgres. Currently it is not possible to connect directly to your Prisma Postgres database, and this will prevent you from using tools such as Table Plus. You can use Prisma Studio instead, and we are working on providing direct database access at a future date.
fgoessler
fgoesslerOPโ€ข2mo ago
Ok - thanks for the quick reply! Looking forward to that feature eventually and totally get it that it's missing in this beta access state right now. ๐Ÿ™‚
RaphaelEtim
RaphaelEtimโ€ข2mo ago
You're welcome ๐Ÿ™
grapplingdev
grapplingdevโ€ข2mo ago
@RaphaelEtim I was coming to ask this same question, I'm assuming it's still not possible to get a direct connect URL for prisma postgres dbs?
RaphaelEtim
RaphaelEtimโ€ข2mo ago
At the moment, it isn't but we do have plans to add that feature. You can also please fill this form and tell us more about your usecase.
grapplingdev
grapplingdevโ€ข2mo ago
Awesome, will do!
grapplingdev
grapplingdevโ€ข2mo ago
FYI I was trying out optimize and prisma-postgres at the same time, so I stood up the DB and used the https://github.com/prisma/prisma-examples/tree/latest/accelerate/nextjs-starter project. It turns out everything works fine by just using the DB creds provided in the DIRECT_URL var ๐Ÿค™ p.s. prisma postgres is amazing and 100% makes setting up and using dbs 1000x better!
GitHub
prisma-examples/accelerate/nextjs-starter at latest ยท prisma/prisma...
๐Ÿš€ Ready-to-run Prisma example projects. Contribute to prisma/prisma-examples development by creating an account on GitHub.
RaphaelEtim
RaphaelEtimโ€ข2mo ago
Thank you for your kind words ๐Ÿ™
Want results from more Discord servers?
Add your server