From f869295bcd200b3846312793825d14cbf312b3bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=ABl=20Galeran?= Date: Thu, 2 Nov 2023 11:00:20 +0100 Subject: [PATCH 1/2] Update 880-supabase.mdx (#5418) --- content/300-guides/050-database/880-supabase.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/300-guides/050-database/880-supabase.mdx b/content/300-guides/050-database/880-supabase.mdx index 870b4a5126..75a6b5a0c0 100644 --- a/content/300-guides/050-database/880-supabase.mdx +++ b/content/300-guides/050-database/880-supabase.mdx @@ -35,14 +35,14 @@ need to add `pgbouncer=true` to the end of the `DATABASE_URL` environment variab ```env file=.env # Connect to Supabase with PgBouncer. -DATABASE_URL="postgres://postgres:__PASSWORD__@db.__YOUR_SUPABASE_PROJECT__.supabase.co:6543/postgres?pgbouncer=true" +DATABASE_URL="postgres://postgres.__YOUR_SUPABASE_PROJECT__:__PASSWORD__@aws-0-eu-central-1.pooler.supabase.com:6543/postgres?pgbouncer=true" ``` If you would like to use the Prisma CLI in order to perform other actions on your database (e.g. migrations) you will need to add a `DIRECT_URL` environment variable to use in the `datasource.directUrl` property so that the CLI can bypass PgBouncer: ```env file=.env highlight=4-5;add # Connect to Supabase with PgBouncer. -DATABASE_URL="postgres://postgres:__PASSWORD__@db.__YOUR_SUPABASE_PROJECT__.supabase.co:6543/postgres?pgbouncer=true" +DATABASE_URL="postgres://postgres.__YOUR_SUPABASE_PROJECT__:__PASSWORD__@aws-0-eu-central-1.pooler.supabase.com:6543/postgres?pgbouncer=true" # Direct connection to the database. Used for migrations. DIRECT_URL="postgres://postgres:__PASSWORD__@db.__YOUR SUPABASE_PROJECT__.supabase.co:5432/postgres" From 67add2f0048c9b4ec0398af69d766ecaef51a927 Mon Sep 17 00:00:00 2001 From: Shery <382254994@qq.com> Date: Fri, 3 Nov 2023 22:48:45 +0800 Subject: [PATCH 2/2] Correcting Escaped Code Example (#5409) --- .../02-prisma-client/050-filtering-and-sorting.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/200-concepts/100-components/02-prisma-client/050-filtering-and-sorting.mdx b/content/200-concepts/100-components/02-prisma-client/050-filtering-and-sorting.mdx index f800668b11..f12dd4371a 100644 --- a/content/200-concepts/100-components/02-prisma-client/050-filtering-and-sorting.mdx +++ b/content/200-concepts/100-components/02-prisma-client/050-filtering-and-sorting.mdx @@ -267,7 +267,7 @@ The above query will match any user whose name starts with a character followed const users = await prisma.user.findMany({ where: { name: { - startsWith: '\_benny', // note that the `_` character is escaped + startsWith: '\\_benny', // note that the `_` character is escaped, preceding `\` with `\` when included in a string }, }, })