summaryrefslogblamecommitdiff
path: root/dichroism/src/product_repo.rs
blob: 67c5d3e35db92304ac2a098e29e4967d02277fa0 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

















                                                                        
use super::models::ProductImg;
use diesel::prelude::*;
use diesel::result::Error;

type DBConn = SqliteConnection;

pub fn read_products(_conn: &DBConn) -> Result<Vec<ProductImg>, Error> {
    todo!()
}

#[cfg(test)]
mod tests {

    #[test]
    fn test() -> std::result::Result<(), Box<dyn std::error::Error>> {
        Ok(())
    }
}