#watcher #sqlx #postgresql #casbin

casbin-sqlx-watcher

Casbin watcher implementation using sqlx and postgres

2 releases

Uses new Rust 2024

new 0.1.1 Apr 11, 2025
0.1.0 Apr 10, 2025

#734 in Database interfaces

Download history 160/week @ 2025-04-05

163 downloads per month

Apache-2.0

28KB
332 lines

Casbin Sqlx Watcher

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.

Dependencies

~23–38MB
~616K SLoC