openauth-tokio-postgres
Minimal tokio-postgres database adapter for OpenAuth-RS.
Status
This package is in experimental beta. Adapter behavior, migration planning, and rate-limit store contracts may change before stable release.
What It Provides
openauth-tokio-postgres is useful when an application already owns a
tokio_postgres::Client or wants the smallest async Postgres adapter. It is not
a pool; production applications that need pooling should usually prefer
openauth-deadpool-postgres.
Example
use OpenAuth;
use TokioPostgresAdapter;
let adapter = connect
.await?;
let auth = builder
.secret
.adapter
.build?;
Use TokioPostgresRateLimitStore::from(&adapter) when a single client should
also back rate limiting.