Unify the adapter syntax. #28290
Replies: 2 comments
|
Thank you for the suggestion. We will check this with the team to see if this is possible. |
0 replies
|
Hi, As we have not heard back from you, we are closing this discussion to keep our discussions organized. Feel free to start a new discussion if this remains relevant. Thank you for being part of the community! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Question
Please see this document. In first access, I saw this command for Postgresql:
I thought the Mariadb code do the same thing, but
connectionStringis not defined inPrismaMariaDbconfiguration. There's a Mariadb code but too verbose:What is worse, there's a MSSQL Code like this:
It is too verbose! So I wish unifying all of adapters by one of the two options:
new Prisma*(process.env.DATABASE_URL)new Prisma*({ url: process.env.DATABASE_URL })Can I wish?
How to reproduce (optional)
Expected behavior (optional)
No response
Information about Prisma Schema, Client Queries and Environment (optional)
// Add your schema.prisma// Add any relevant Prisma Client queries hereOS:
Database:
Node.js version:
Run
prisma -vto see your Prisma version and paste itAll reactions