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