# mediate_postgres v0.1.0 - Table of Contents

> Row-level security for Mediate: an authorization adapter whose rules are Postgres policies.

## Pages

- [Mediate on row-level security](readme.md)

## Modules

- [Mediate.Postgres](Mediate.Postgres.md): Row-level security as the adapter: the rules are Postgres policies on the
tables themselves.
- [Mediate.Postgres.Binding](Mediate.Postgres.Binding.md): The repo, the schemas, and the migrations table that `Mediate.Postgres`
needs beyond the configuration.
- [Mediate.Postgres.Catalog](Mediate.Postgres.Catalog.md): What the database says its own rules are.
- [Mediate.Postgres.Coverage](Mediate.Postgres.Coverage.md): Declared-fact coverage for row-level security: every column the policies
read is a declared fact.
- [Mediate.Postgres.Migration](Mediate.Postgres.Migration.md): The helpers a migration calls. This is the only place the package writes
DDL. Every statement runs through the repo the caller passes, under the
library exemption, so the seam mediates a migration like any other call.
- [Mediate.Postgres.Policy](Mediate.Postgres.Policy.md): One row-level security policy as `pg_policy` holds it. It holds the name,
the table, the command it applies to, and the `USING` and `WITH CHECK`
expressions as the database renders them.
- [Mediate.Postgres.Version](Mediate.Postgres.Version.md): The policy version of row-level security: the migration number.

