We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
directUrl
Describe the bug When using directUrl in prisma datasource, prisma complains that the connection url is empty.
To Reproduce Steps to reproduce the behavior:
postgresql://user:pass@url.supabase.co:6543/postgres?pgbouncer=true
postgresql://user:pass@url.supabase.co:5432/postgres
datasource db { provider = "postgresql" url = env("DATABASE_URL") directUrl = env("DIRECT_URL") shadowDatabaseUrl = env("DIRECT_URL") }
yarn db-push
Log:
root@proj-794877866d-d8trj:/src# yarn db-push • Packages in scope: @my/api, @my/db, @my/ui, app, expo-app, nextjs • Running db-push in 6 packages • Remote caching disabled @my/db:db-push: cache bypass, force executing 52d000672fac80cc @my/db:db-push: Prisma schema loaded from prisma/schema.prisma @my/db:db-push: Datasource "db": PostgreSQL database @my/db:db-push: @my/db:db-push: Error: Connection url is empty. See https://www.prisma.io/docs/reference/database-reference/connection-urls @my/db:db-push: ERROR: command finished with error: command (/src/packages/db) yarn run db-push exited (1) command (/src/packages/db) yarn run db-push exited (1)
Expected behavior Database is populated
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
When using
directUrl
in prisma datasource, prisma complains that the connection url is empty.To Reproduce
Steps to reproduce the behavior:
postgresql://user:pass@url.supabase.co:6543/postgres?pgbouncer=true
)postgresql://user:pass@url.supabase.co:5432/postgres
)yarn db-push
Log:
Expected behavior
Database is populated
The text was updated successfully, but these errors were encountered: