Grassroots Infrastructure
The Grassroots Infrastructure is a suite of computing tools to help users and developers use scientific data infrastructure that can easily be interconnected.
|
Go to the documentation of this file.
27 #ifndef MONGODB_TOOL_H_
28 #define MONGODB_TOOL_H_
37 #ifndef DOXYGEN_SHOULD_SKIP_THIS
39 #ifdef GRASSROOTS_MONGODB_LIBRARY_EXPORTS // defined if we are building the LIB DLL (instead of using it)
41 #ifdef ALLOCATE_MONGODB_TAGS
42 #define MONGODB_PREFIX GRASSROOTS_MONGODB_API
43 #define MONGODB_VAL(x) = x
45 #define MONGODB_PREFIX extern GRASSROOTS_MONGODB_API
46 #define MONGODB_VAL(x)
49 #define MONGODB_PREFIX extern GRASSROOTS_MONGODB_API
50 #define MONGODB_VAL(x)
53 #endif // #ifndef DOXYGEN_SHOULD_SKIP_THIS
63 MONGODB_PREFIX
const char *
MONGO_ID_S MONGODB_VAL(
"_id");
139 #define MONGO_OID_STRING_BUFFER_SIZE (25)
166 mongoc_client_t *mt_client_p;
176 mongoc_collection_t *mt_collection_p;
184 mongoc_database_t *mt_database_p;
191 mongoc_cursor_t *mt_cursor_p;
501 GRASSROOTS_MONGODB_API void LogBSONOid (
const bson_oid_t *bson_p,
const int level,
const char *
const filename_s,
const int line_number,
const char *
const prefix_s);
583 GRASSROOTS_MONGODB_API const char *
InsertOrUpdateMongoData (
MongoTool *tool_p, json_t *values_p,
const char *
const database_s,
const char *
const collection_s,
const char **primary_keys_ss,
const size_t num_keys,
const char *
const mapped_id_s,
const char *
const object_key_s);
#define GRASSROOTS_MONGODB_API
Definition: mongodb_library.h:46
OperationStatus
The current status of an Operation.
Definition: operation.h:96