building db support with diesel.rs

This commit is contained in:
2019-01-27 21:52:46 +01:00
parent 940927d376
commit fb4d24ef44
14 changed files with 113 additions and 6 deletions

9
cookbook/src/schema.rs Normal file
View File

@@ -0,0 +1,9 @@
table! {
recipes (id) {
id -> Integer,
title -> Text,
category -> Integer,
ingredients -> Text,
preparation -> Text,
}
}