From 26d0ee51e232b793bc83ba565c0e9ab820d8d0db Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Thu, 17 Apr 2025 11:24:43 +0100 Subject: feat(filamento): remove sqlx --- filamento/src/db.rs | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'filamento/src/db.rs') 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(()) -- cgit