Start using the new sea-orm backed database
This commit is contained in:
parent
19d14737bf
commit
d2385bd6a0
21 changed files with 1131 additions and 4902 deletions
|
@ -2,7 +2,7 @@ mod connection_pool;
|
|||
|
||||
use crate::{
|
||||
auth,
|
||||
db::{self, DefaultDb, ProjectId, RoomId, User, UserId},
|
||||
db::{self, Database, ProjectId, RoomId, User, UserId},
|
||||
AppState, Result,
|
||||
};
|
||||
use anyhow::anyhow;
|
||||
|
@ -128,10 +128,10 @@ impl fmt::Debug for Session {
|
|||
}
|
||||
}
|
||||
|
||||
struct DbHandle(Arc<DefaultDb>);
|
||||
struct DbHandle(Arc<Database>);
|
||||
|
||||
impl Deref for DbHandle {
|
||||
type Target = DefaultDb;
|
||||
type Target = Database;
|
||||
|
||||
fn deref(&self) -> &Self::Target {
|
||||
self.0.as_ref()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue