From f491ed95a3bc82c31c70b0f38ed841408576ec0c Mon Sep 17 00:00:00 2001 From: WriterV2 Date: Sat, 21 Mar 2026 11:56:19 +0100 Subject: Purge + prepare for local website builder --- src/db/mod.rs | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 src/db/mod.rs (limited to 'src/db/mod.rs') diff --git a/src/db/mod.rs b/src/db/mod.rs deleted file mode 100644 index f1baf44..0000000 --- a/src/db/mod.rs +++ /dev/null @@ -1,32 +0,0 @@ -use sqlx::SqlitePool; - -use crate::error::AppError; -use async_trait::async_trait; - -pub mod game; -pub mod product; -pub mod producttag; -pub mod story; -pub mod tag; -pub mod tool; - -#[async_trait] -pub trait ProductDatabaseHandler { - async fn get_all(pool: &SqlitePool) -> Result, AppError> - where - Self: Sized; - - async fn post( - &self, - pool: &SqlitePool, - name: &str, - description: &str, - tags: Vec<&str>, - ) -> Result - where - Self: Sized; - - async fn delete(pool: &SqlitePool, id: i64) -> Result<(), AppError> - where - Self: Sized; -} -- cgit v1.2.3