summaryrefslogtreecommitdiff
path: root/backend/recipe.go
AgeCommit message (Collapse)Author
2019-11-12Fix change QueryRow to Exec for ingredient/step insertsTucker Evans
Changed database schema so ingredients & steps does not have an id, and therefore can't return it so instead we just exec the insert statement without returning anything. We do have to check that there were affected rows in order to accurately update the recipe object.
2019-11-10Add create recipe functionalityTucker Evans
2019-11-10Fix RecipeFromId expects only one row from databaseTucker Evans
Now uses sql.QueryRow rather than sql.Query so it doesnt have to check row.Next(), just have to check that row was returned (on scan call)
2019-11-10Fix MakeRecipeFromIdTucker Evans
MakeRecipeFromId was creating a empty recipe because rows.Next() was not being checked.
2019-11-09Add make Recipe w/ id & database connectionTucker Evans
2019-11-09Add Recipe Type (w/ subtypes Ingredients & Steps)Tucker Evans