You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-07-29 22:01:14 +03:00
Split the storage trait from the implementation
This commit is contained in:
@ -19,6 +19,7 @@ url = "2.3.1"
|
||||
oauth2-types = { path = "../oauth2-types" }
|
||||
mas-data-model = { path = "../data-model" }
|
||||
mas-storage = { path = "../storage" }
|
||||
mas-storage-pg = { path = "../storage-pg" }
|
||||
|
||||
[[bin]]
|
||||
name = "schema"
|
||||
|
@ -34,8 +34,9 @@ use mas_storage::{
|
||||
oauth2::OAuth2ClientRepository,
|
||||
upstream_oauth2::{UpstreamOAuthLinkRepository, UpstreamOAuthProviderRepository},
|
||||
user::{BrowserSessionRepository, UserEmailRepository},
|
||||
Pagination, PgRepository, Repository,
|
||||
Pagination, Repository,
|
||||
};
|
||||
use mas_storage_pg::PgRepository;
|
||||
use model::CreationEvent;
|
||||
use sqlx::PgPool;
|
||||
|
||||
|
@ -15,9 +15,8 @@
|
||||
use anyhow::Context as _;
|
||||
use async_graphql::{Context, Description, Object, ID};
|
||||
use chrono::{DateTime, Utc};
|
||||
use mas_storage::{
|
||||
compat::CompatSessionRepository, user::UserRepository, PgRepository, Repository,
|
||||
};
|
||||
use mas_storage::{compat::CompatSessionRepository, user::UserRepository, Repository};
|
||||
use mas_storage_pg::PgRepository;
|
||||
use sqlx::PgPool;
|
||||
use url::Url;
|
||||
|
||||
|
@ -14,9 +14,8 @@
|
||||
|
||||
use anyhow::Context as _;
|
||||
use async_graphql::{Context, Description, Object, ID};
|
||||
use mas_storage::{
|
||||
oauth2::OAuth2ClientRepository, user::BrowserSessionRepository, PgRepository, Repository,
|
||||
};
|
||||
use mas_storage::{oauth2::OAuth2ClientRepository, user::BrowserSessionRepository, Repository};
|
||||
use mas_storage_pg::PgRepository;
|
||||
use oauth2_types::scope::Scope;
|
||||
use sqlx::PgPool;
|
||||
use ulid::Ulid;
|
||||
|
@ -16,9 +16,9 @@ use anyhow::Context as _;
|
||||
use async_graphql::{Context, Object, ID};
|
||||
use chrono::{DateTime, Utc};
|
||||
use mas_storage::{
|
||||
upstream_oauth2::UpstreamOAuthProviderRepository, user::UserRepository, PgRepository,
|
||||
Repository,
|
||||
upstream_oauth2::UpstreamOAuthProviderRepository, user::UserRepository, Repository,
|
||||
};
|
||||
use mas_storage_pg::PgRepository;
|
||||
use sqlx::PgPool;
|
||||
|
||||
use super::{NodeType, User};
|
||||
|
@ -22,8 +22,9 @@ use mas_storage::{
|
||||
oauth2::OAuth2SessionRepository,
|
||||
upstream_oauth2::UpstreamOAuthLinkRepository,
|
||||
user::{BrowserSessionRepository, UserEmailRepository},
|
||||
Pagination, PgRepository, Repository,
|
||||
Pagination, Repository,
|
||||
};
|
||||
use mas_storage_pg::PgRepository;
|
||||
use sqlx::PgPool;
|
||||
|
||||
use super::{
|
||||
|
Reference in New Issue
Block a user