aboutsummaryrefslogtreecommitdiff
path: root/db/uobject.h
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2019-08-08 19:07:02 +0200
committerneodarz <neodarz@neodarz.net>2019-08-08 19:07:02 +0200
commit85e1431aa382f721e3b51804ca0b00ab063553ef (patch)
tree71ea37b36a5c534e62b6d755aa03405a122e934a /db/uobject.h
parentf502716912b349ea446aa52556701bbda9083de8 (diff)
downloadumosapicpp-85e1431aa382f721e3b51804ca0b00ab063553ef.tar.xz
umosapicpp-85e1431aa382f721e3b51804ca0b00ab063553ef.zip
Add ability to delete an uobject
Diffstat (limited to '')
-rw-r--r--db/uobject.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/db/uobject.h b/db/uobject.h
index e08429f..3e0fd1e 100644
--- a/db/uobject.h
+++ b/db/uobject.h
@@ -2,6 +2,9 @@
#define Uobject_H_
#include <bsoncxx/builder/stream/document.hpp>
+#include <bsoncxx/builder/basic/kvp.hpp>
+#include <bsoncxx/oid.hpp>
+
#include <bsoncxx/json.hpp>
#include <mongocxx/client.hpp>
@@ -19,6 +22,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);
}
#endif