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.
mongodb_util.h
Go to the documentation of this file.
1
/*
2
** Copyright 2014-2016 The Earlham Institute
3
**
4
** Licensed under the Apache License, Version 2.0 (the "License");
5
** you may not use this file except in compliance with the License.
6
** You may obtain a copy of the License at
7
**
8
** http://www.apache.org/licenses/LICENSE-2.0
9
**
10
** Unless required by applicable law or agreed to in writing, software
11
** distributed under the License is distributed on an "AS IS" BASIS,
12
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
** See the License for the specific language governing permissions and
14
** limitations under the License.
15
*/
16
21
/*
22
* mongo_db_util.h
23
*
24
* Created on: 20 Jul 2015
25
* Author: billy
26
*/
27
28
#ifndef MONGO_DB_UTIL_H_
29
#define MONGO_DB_UTIL_H_
30
31
#include "
mongodb_library.h
"
32
#include "
grassroots_server.h
"
33
#include "
typedefs.h
"
34
35
36
#ifdef __cplusplus
37
extern
"C"
{
38
#endif
39
49
GRASSROOTS_MONGODB_API
bool
InitMongoDB
(
void
);
50
51
57
GRASSROOTS_MONGODB_API
void
ExitMongoDB
(
void
);
58
59
60
61
GRASSROOTS_MONGODB_API
bool
PrepareSaveData
(bson_oid_t **id_pp, bson_t **selector_pp);
62
63
64
#ifdef __cplusplus
65
}
66
#endif
67
68
69
#endif
/* MONGO_DB_UTIL_H_ */
GRASSROOTS_MONGODB_API
#define GRASSROOTS_MONGODB_API
Definition:
mongodb_library.h:46
grassroots_server.h
typedefs.h
PrepareSaveData
bool PrepareSaveData(bson_oid_t **id_pp, bson_t **selector_pp)
ExitMongoDB
void ExitMongoDB(void)
Free any MongoDB resources that the Grassroots system obtained when it was started.
InitMongoDB
bool InitMongoDB(void)
When the Grassroots system starts up, iniitialise and global MongoDB resources that it needs.
mongodb_library.h
core
server
mongodb
include
mongodb_util.h
Generated on Mon Feb 26 2024 17:00:10 for Grassroots Infrastructure by
1.8.16