-
Notifications
You must be signed in to change notification settings - Fork 302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TS: SQLDatabase's connection string fails when connecting to Prisma CLI #1388
Comments
It looks like the connection string is correct, e.g you can use that to connect via |
Thanks, @fredr! It would be great if the TS Database Documentation could also include references to ORMs that integrate seamlessly with this tool and its microservices architecture. |
I've tested your migrate code, and for me it works if I delay execution like this: (async () => {
await prismaMigrate(db.connectionString);
})(); Does that work for you as well? |
@fredr yup, it's working! :) |
Great, in the next release of encore there is a fix for this (#1407) so you won't need to wrap it for long |
If you update to |
At my organization we're trying to integrate Prisma with Encore.dev(TS). Fow now it looks like Prisma doesn't allows you to programatically migrate everything so we decided to spawn the Prisma CLI as a workaround.
The problem here is that the connection string provided by
SQLDatabase
is wrong but the Encore CLI is able to give me the correct connection string.Code
Terminal
As you can see in the image below, I'm using
encore v1.41.1
.The text was updated successfully, but these errors were encountered: