From cf86e3de524ff247f496c34cd9e8df61cd4e6845 Mon Sep 17 00:00:00 2001 From: neodarz Date: Fri, 9 Aug 2019 16:28:59 +0200 Subject: Add ability to search uobjects --- db/uobject.h | 1 + 1 file changed, 1 insertion(+) (limited to 'db/uobject.h') diff --git a/db/uobject.h b/db/uobject.h index 3e0fd1e..0533661 100644 --- a/db/uobject.h +++ b/db/uobject.h @@ -23,6 +23,7 @@ namespace uobject { std::string retrieveAll(std::string collection, struct json_object* jsonObjects); std::string add(std::string collection, struct json_object* jsonObjects, const char * body); std::string remove(std::string collection, std::string oid, struct json_object* jsonObjects); + std::string searchKeyValue(std::string collection, std::string key, std::string value, struct json_object* jsonArray); } #endif -- cgit v1.2.1