Skip to content

ilpvfx/casbin-sqlx-watcher

Repository files navigation

Casbin Sqlx Watcher

docs.rs GitHub Actions Workflow Status

Supported databases: Postgres

Implements the Watcher trait for casbin-rs using sqlx and Postgres LISTEN NOTIFY functionality.

The purpose of a watcher is to notify all instances of casbin that polices have changed, and that they need to reload from the database.