Add docs on Data Proxy directUrl property - #4377
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
This PR changes the following pages (Vercel Preview Deploy links): Changed Vercel links
(Note that links will only be valid after Vercel preview deploy succeeded) |
|
Note that we already have a shortlink pointing to this section, which seem to have broken in an earlier update when the headline/anchor was renamed: https://pris.ly/d/data-proxy-cli We should make sure we have a good headline to link to that can be updated via a PR to pris.ly |
…ata-proxy.mdx Co-authored-by: Jan Piotrowski <piotrowski+github@gmail.com>
|
This seems to be the place the shortlink is used: https://sourcegraph.com/github.com/prisma/prisma/-/blob/packages/internals/src/cli/checkUnsupportedDataProxy.ts?L37 I think linking to this whole page, rather than a heading, would work, as is the message is about the general problem with needing to use a direct connection |
|
True, before this was just a subsection of a page - not it is its own page. |
|
Thank you for helping with this content, @keerlu! 🙏 That is going to make things so much easier for Data Proxy users! 😌 |
Closes #1359 Note: docs PR prisma/web#4377
sabinadams
left a comment
There was a problem hiding this comment.
All of this looks good to me
| Currently, you can only use [Prisma Client](/concepts/components/prisma-client) with the Data Proxy to _query_ your database. | ||
|
|
||
| </TopBlock> | ||
|
|
||
| You need a direct (non-Data Proxy) database connection if you apply schema changes to your database with [Prisma Migrate](/concepts/components/prisma-migrate/get-started) or [`db push`](/concepts/components/prisma-migrate/db-push), or if you [introspect](/concepts/components/introspection) your database. See [Prisma CLI commands that require a direct database connection](#prisma-cli-commands-that-require-a-direct-database-connection). |
There was a problem hiding this comment.
Upon rereading this, we could make clearer that Prisma Client is totally fine.
And that it is only Prisma CLI where commands are not by default and the additional feature here are needed.
Right now that is not super spelled out, both in words and visually.
(Line 12 could maybe start with "In Prisma CLI you need...")
|
prisma:warn Attempt 1/10 failed for querying: Internal Data Proxy error (The request id was: 84981ec9bae4ff43536662429f743c00) |
Describe this PR
directUrlproperty todatasourceblock in schema referenceChanges
What issue does this fix?
Fixes #4297
Fixes #4305
Any other relevant information