Expand description
Live-database support for demesne: introspection into a Schema, the drift diff reports, the schema traps, the global-assignment audit and the RLS role check.
Structs§
- Drift
- Every difference between the live database and the spec’s SQL, and how many objects match.
- Error
- Why a live database could not be reached or read.
- Finding
- One difference between the live database and the spec’s SQL.
- Introspect
Meta - Trap
- One trap in the live schema around the tables a spec governs.
Enums§
Functions§
- connect
- Connects to Postgres from a URL or keyword/value string, the way libpq and pgx do.
- count_
global_ assignments - Counts the rows
queryreturns. - drift
- Compares the live database with
sql, the spec’s whole SQL, in both directions. - introspect
- Reads the
publicschema’s tables, columns, keys and foreign keys. - query_
error - role_
bypasses_ rls - Returns whether
roleexists and, if it does, whether it bypasses row-level security. - schema_
traps - Finds the schema traps that bypass or weaken the policies on the
governedtables.