diff --git a/src/content/docs/rls.mdx b/src/content/docs/rls.mdx index cb5cfd81..136017ae 100644 --- a/src/content/docs/rls.mdx +++ b/src/content/docs/rls.mdx @@ -449,6 +449,10 @@ In upcoming releases, it will be moved to drizzle-orm/supabase, allowing you to Please check [Drizzle SupaSecureSlack repo](https://github.com/rphlmr/drizzle-supabase-rls) Here is an example of an implementation from this repository + +If you are using `sql.raw` you must escape any special characters such as quotes, double quotes, etc. + + ```ts type SupabaseToken = { iss?: string; @@ -512,4 +516,4 @@ async function getRooms() { const db = await createDrizzleSupabaseClient(); return db.rls((tx) => tx.select().from(rooms)); } -``` \ No newline at end of file +```