Create a schema-aware Rowguard instance
import { Database } from './database.types'const rg = createRowguard<Database>()const p = rg.policy('user_notes') .on('notes') // autocomplete table names .read() .when(rg.column('notes', 'user_id').eq(rg.auth.uid())) Copy
import { Database } from './database.types'const rg = createRowguard<Database>()const p = rg.policy('user_notes') .on('notes') // autocomplete table names .read() .when(rg.column('notes', 'user_id').eq(rg.auth.uid()))
Create a schema-aware Rowguard instance