Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

282 B
Raw Blame
import { ident, safeSql, type SafeSqlFragment } from '../../../pg-format'

export const getEnableRLSSQL = ({
  schema,
  table,
}: {
  schema: string
  table: string
}): SafeSqlFragment => {
  return safeSql`ALTER TABLE ${ident(schema)}.${ident(table)} ENABLE ROW LEVEL SECURITY`
}