rs-auth-postgres 0.1.2

Postgres persistence and migrations for rs-auth.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use sqlx::PgPool;

/// PostgreSQL database wrapper for rs-auth storage backends.
#[derive(Clone, Debug)]
pub struct AuthDb {
    /// SQLx PostgreSQL connection pool.
    pub pool: PgPool,
}

impl AuthDb {
    pub fn new(pool: PgPool) -> Self {
        Self { pool }
    }
}