From d2f30dcca75ead7b9482d886bf37002c41cae515 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Ortega=20Froysa?= Date: Sat, 12 Oct 2024 10:41:35 +0200 Subject: [PATCH] Rename db functions s/db_// --- src/db.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/db.hpp b/src/db.hpp index 1fcf2ae..3fb57d7 100644 --- a/src/db.hpp +++ b/src/db.hpp @@ -54,7 +54,7 @@ public: inline int get_recipe_id(const std::string &name) { return table_get_id_by_name("recipes", name); } - inline bool db_recipe_exists(const std::string &name) { + inline bool recipe_exists(const std::string &name) { return (get_recipe_id(name) > 0); } bool recipe_exists(const int id); @@ -74,7 +74,7 @@ public: inline int get_ingredient_id(const std::string &name) { return table_get_id_by_name("ingredients", name); } - inline bool db_ingredient_exists(const std::string &name) { + inline bool ingredient_exists(const std::string &name) { return (get_ingredient_id(name) > 0); }