aboutsummaryrefslogtreecommitdiff
path: root/db/uobject.h
blob: e08429f7d41caba79bf0f9da4797a939c68dcbbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef Uobject_H_
#define Uobject_H_

#include <bsoncxx/builder/stream/document.hpp>
#include <bsoncxx/json.hpp>

#include <mongocxx/client.hpp>
#include <mongocxx/instance.hpp>

#include <mongocxx/client.hpp>
#include <mongocxx/stdx.hpp>
#include <mongocxx/uri.hpp>

#include <json-c/json.h>

#include "../shared.h"
#include "../db/mongo_access.h"

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);
}

#endif