Skip to content

Commit c3c294e

Browse files
committed
chore: Adds rls booleans to the tables
This change adds "rls_enabled", which determines where RLS has been turned on, and "rls_forced" which determines whether RLS should be forced on the table owner too
1 parent 1f71af3 commit c3c294e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib/sql/tables.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ SELECT
44
table_schema AS schema,
55
table_name AS name,
66
is_insertable_into,
7+
relrowsecurity::bool as rls_enabled,
8+
relforcerowsecurity as rls_forced,
79
is_typed,
810
pg_total_relation_size(format('%I.%I', table_schema, table_name))::bigint AS bytes,
911
pg_size_pretty(

0 commit comments

Comments
 (0)