The library wraps two operations of the MongoDB framework (version 4.2.3
) and allows to embed those as a Microservice in a Jolie program.
The operations are:
query
- it allows to insert data in a collection and query those by using therunCommand
for MongoDB;drop
- it allows to drop a list of collections.
For the complete list of dependencies refer to the 'pom.xml' file.
To compile the project, I used the following:
- Target
OpenJDK Runtime Environment AdoptOpenJDK-11.0.11+9 (build 11.0.11+9)
- Built using
Apache Maven 3.8.1
To install the drivers use jpm
available via npm install -g jpm
using Node
:
jpm add jolie-mongodb-driver
Insert at the beginning of your Jolie service the following:
from jolie-mongodb-driver.main import MongoDBDriver