aboutsummaryrefslogtreecommitdiffstats
path: root/filamento/src/db.rs
diff options
context:
space:
mode:
authorLibravatar cel 🌸 <cel@bunny.garden>2025-04-17 11:24:43 +0100
committerLibravatar cel 🌸 <cel@bunny.garden>2025-04-17 11:24:43 +0100
commit26d0ee51e232b793bc83ba565c0e9ab820d8d0db (patch)
tree26596552b1c7692fe9b4c95a9b254299273f2432 /filamento/src/db.rs
parentb9d75f38743113c054be3d97af36bdd2a7dd0d69 (diff)
downloadluz-26d0ee51e232b793bc83ba565c0e9ab820d8d0db.tar.gz
luz-26d0ee51e232b793bc83ba565c0e9ab820d8d0db.tar.bz2
luz-26d0ee51e232b793bc83ba565c0e9ab820d8d0db.zip
feat(filamento): remove sqlx
Diffstat (limited to '')
-rw-r--r--filamento/src/db.rs13
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(())