8#include "bsoncxx/types/value.hpp"
9#include "bsoncxx/builder/basic/document.hpp"
10#include "bsoncxx/document/view_or_value.hpp"
12#pragma warning (disable:4996)
14using Document = bsoncxx::builder::basic::document;
16using value = bsoncxx::types::value;
21 class __declspec(dllexport) DocumentManager
25 DataStorageResponse InsertDocumentToDatabase(
unsigned long long entityId,
int version,
string collectionName,
26 Document& jsonData,
bool allowQueueing);
28 DataStorageResponse InsertDocumentToFileStorage(
unsigned long long entityId,
int version,
string collectionName,
29 Document& fileMetaData,
string filePath,
bool allowQueueing);
31 DataStorageResponse InsertDocumentToFileStorage(
unsigned long long entityId,
int version,
string collectionName, std::ifstream * source,
32 Document& fileMetaData,
bool allowQueueing);
34 DataStorageResponse InsertDocumentToDatabaseOrFileStorage(
unsigned long long entityId,
unsigned long long version,
35 string collectionName,
Document& jsonData,
bool checkForExistence,
bool allowQueueing);
37 DataStorageResponse GetAllDocument(
string collectionName, std::map<string, value> filterPairs, std::vector<string> columnNames,
38 bool includeDocumentId,
int limit);
39 DataStorageResponse GetDocument(
string collectionName, std::map<string, value> filterPairs, std::vector<string> columnNames,
40 bool includeDocumentId);
42 static const int MaxDocumentLength = 16776216;
45 string GetDocumentLocalFilePath(
int siteId,
string relativePath);
46 DataStorageResponse CheckDocumentEntityExists(
unsigned long long entityId,
unsigned long long version,
string collectionName);
47 string SaveDocumentToFileStorage(std::ifstream * source);
48 string SaveDocumentToFileStorage(bsoncxx::document::view view,
string fileExtension);
bsoncxx::document::view_or_value BsonViewOrValue
Definition DocumentAccess.h:12
std::string string
Definition DocumentAccess.h:13
bsoncxx::builder::basic::document Document
Definition DocumentManager.h:14
bsoncxx::types::value value
Definition DocumentManager.h:16
Definition ArrayBinaryConverter.h:3