blob: 852b9309d40de5a0624006dd394be5da6a8bf152 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
use super::models::Product;
use diesel::prelude::*;
use diesel::result::Error;
type DBConn = SqliteConnection;
pub fn create_product(conn: &DBConn) -> Result<Product, Error> {
todo!()
}
pub fn read_products(_conn: &DBConn) -> Result<Vec<Product>, Error> {
todo!()
}
pub fn update_product(conn: &DBConn) -> Result<Product, Error> {
todo!()
}
pub fn delete_product(conn: &DBConn) -> Result<(), Error> {
todo!()
}
|