summaryrefslogtreecommitdiff
path: root/src/db/mod.rs
diff options
context:
space:
mode:
authorWriterV2 <primary-v2@protonmail.com>2026-03-21 11:56:19 +0100
committerWriterV2 <primary-v2@protonmail.com>2026-03-21 11:56:19 +0100
commitf491ed95a3bc82c31c70b0f38ed841408576ec0c (patch)
tree1cfc9a957e150ded75c93fad54028a18640ba7c2 /src/db/mod.rs
parent74db93c431ebc02b1dc43ec12714007d005a9704 (diff)
Purge + prepare for local website builder
Diffstat (limited to 'src/db/mod.rs')
-rw-r--r--src/db/mod.rs32
1 files changed, 0 insertions, 32 deletions
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<Vec<Self>, AppError>
- where
- Self: Sized;
-
- async fn post(
- &self,
- pool: &SqlitePool,
- name: &str,
- description: &str,
- tags: Vec<&str>,
- ) -> Result<Self, AppError>
- where
- Self: Sized;
-
- async fn delete(pool: &SqlitePool, id: i64) -> Result<(), AppError>
- where
- Self: Sized;
-}