Rowguard - RLS Policy DSL - v0.2.0
    Preparing search index...

    Function policyGroupToSQL

    • Generate SQL for a policy group.

      Emits CREATE INDEX IF NOT EXISTS statements for every column referenced in a policy condition by default. Pass { includeIndexes: false } to suppress them.

      Emits warning comments when:

      • A RESTRICTIVE policy has no companion PERMISSIVE policy in the group
      • A policy uses an IN subquery whose source table has no SELECT policy in the group

      Parameters

      Returns string