Ballerina MongoDB Connector
MongoDB is a general purpose, document-based, distributed database built for modern application developers and for the cloud era. MongoDB offers both a Community and an Enterprise version of the database.
MongoDB connector connects to MongoDB from Ballerina. This connector provides the capability to perform the MongoDB CRUD operations.
For more information, go to the module(s).
Building from the source
Setting up the prerequisites
-
Download and install Java SE Development Kit (JDK) version 11. You can install either OpenJDK or Oracle JDK.
Note: Set the JAVA_HOME environment variable to the path name of the directory into which you installed JDK.
-
Download and install Ballerina Swan Lake
-
Download and install Gradle.
-
Export Github Personal access token with read package permissions as follows,
export packageUser=<Username> export packagePAT=<Personal access token>
Building the source
Execute the commands below to build from the source.
-
To build Java dependency
./gradlew clean build
-
-
To build the package:
bal pack ./mongodb
-
To test the connector:
Follow the instructions given in https://github.com/ballerina-platform/module-ballerinax-mongodb/blob/master/mongodb/tests/Ballerina.md
-
Contributing to Ballerina
As an open source project, Ballerina welcomes contributions from the community.
For more information, go to the contribution guidelines.
Code of conduct
All the contributors are encouraged to read the Ballerina Code of Conduct.
Useful links
- Discuss the code changes of the Ballerina project in [email protected].
- Chat live with us via our Discord server.
- Post all technical questions on Stack Overflow with the #ballerina tag.