working on rust side
This commit is contained in:
1 parent
8c89b9c059
commit
3ee9533faf
4 files changed
+108
-9
No files matched your search
@@ -38,6 +38,14 @@ pub mod recipes {
|
||||
.execute(conn)
|
||||
.is_ok()
|
||||
}
|
||||
|
||||
pub fn get(conn: &SqliteConnection, recipe_id: i32) -> Option<Recipe> {
|
||||
use self::schema::recipes::dsl::*;
|
||||
|
||||
recipes.filter(id.eq(recipe_id))
|
||||
.first(conn)
|
||||
.ok()
|
||||
}
|
||||
}
|
||||
|
||||
pub mod ingredients {
|
||||
|
||||
Reference in new issue
Block a user