#watcher #sqlx #postgresql #casbin

casbin-sqlx-watcher

Casbin watcher implementation using sqlx and postgres

2 releases

Uses new Rust 2024

0.1.1 Apr 11, 2025
0.1.0 Apr 10, 2025

#615 in Database interfaces

Download history 249/week @ 2025-04-09 25/week @ 2025-04-16 2/week @ 2025-04-23

276 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
~618K SLoC