summaryrefslogtreecommitdiff
path: root/src/db/mod.rs
blob: 2f2aaeb5e842536abc8249319462be62fdb422fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use sqlx::SqlitePool;

use crate::error::AppError;
use async_trait::async_trait;

pub mod game;
pub mod gametag;
pub mod product;
pub mod story;
pub mod storytag;
pub mod tag;
pub mod tool;
pub mod tooltag;

#[async_trait]
pub trait DatabaseHandler {
    async fn get_all(pool: SqlitePool) -> Result<Vec<Self>, AppError>
    where
        Self: Sized;
}