diff options
Diffstat (limited to 'filamento/src/db.rs')
-rw-r--r-- | filamento/src/db.rs | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/filamento/src/db.rs b/filamento/src/db.rs index e3bfdac..467030d 100644 --- a/filamento/src/db.rs +++ b/filamento/src/db.rs @@ -2,7 +2,6 @@ use std::{collections::HashSet, path::Path}; use chrono::{DateTime, Utc}; use jid::JID; -use sqlx::{SqlitePool, migrate}; use uuid::Uuid; use crate::{ @@ -41,8 +40,8 @@ impl Db { .to_str() .ok_or(DatabaseOpenError::InvalidPath)? ); - let db = SqlitePool::connect(&url).await?; - migrate!().run(&db).await?; + // let db = SqlitePool::connect(&url).await?; + // migrate!().run(&db).await?; // Ok(Self { db }) Ok(Self {}) } @@ -57,10 +56,10 @@ impl Db { Ok(Self {}) } - pub(crate) fn new(db: SqlitePool) -> Self { - // Self { db } - Self {} - } + // pub(crate) fn new(db: SqlitePool) -> Self { + // // Self { db } + // Self {} + // } pub(crate) async fn create_user(&self, user: User) -> Result<(), Error> { Ok(()) |