openauth-deadpool-postgres
Pooled Postgres database adapter for OpenAuth-RS.
Status
This package is in experimental beta. Pool configuration, migration behavior, and adapter contracts may change before stable release.
What It Provides
openauth-deadpool-postgres is the recommended Postgres adapter for production
deployments that want pooling without taking a SQLx dependency. It uses
deadpool-postgres for pooling and reuses OpenAuth-RS shared SQL planning.
Example
use OpenAuth;
use DeadpoolPostgresAdapter;
let adapter = connect
.await?;
let auth = builder
.secret
.adapter
.build?;
Use DeadpoolPostgresRateLimitStore::from(&adapter) when you want the same
database to provide distributed rate limiting.