You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-11-21 23:00:50 +03:00
storage: document all the repository traits and methods
This commit is contained in:
@@ -30,11 +30,15 @@ use uuid::Uuid;
|
||||
|
||||
use crate::{tracing::ExecuteExt, DatabaseError, DatabaseInconsistencyError, LookupResultExt};
|
||||
|
||||
/// An implementation of [`OAuth2AuthorizationGrantRepository`] for a PostgreSQL
|
||||
/// connection
|
||||
pub struct PgOAuth2AuthorizationGrantRepository<'c> {
|
||||
conn: &'c mut PgConnection,
|
||||
}
|
||||
|
||||
impl<'c> PgOAuth2AuthorizationGrantRepository<'c> {
|
||||
/// Create a new [`PgOAuth2AuthorizationGrantRepository`] from an active
|
||||
/// PostgreSQL connection
|
||||
pub fn new(conn: &'c mut PgConnection) -> Self {
|
||||
Self { conn }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user