A Golang MongoDB connector library with a comprehensive set of features for interacting with MongoDB databases, including CRUD operations, aggregation, and file handling.
Welcome to the MongoDB Connector for Go repository! This library provides a powerful set of tools for seamless interaction with MongoDB databases in your Go applications. It supports a wide range of functionalities, including document creation, retrieval, updating, deletion, aggregation, and file handling.
Golang version v1.20
- CRUD Operations: Create, read, update, and delete documents in MongoDB with ease.
- Aggregation Framework: Leverage MongoDB's aggregation framework to perform complex data manipulations.
- Transaction Support: Conduct transactions securely with MongoDB's transaction functionality.
- File Handling: Upload and download files to and from MongoDB GridFS.
- Database Backup and Restore: Backup and restore your MongoDB databases effortlessly.
- Latest version
go get -u github.com/sivaosorg/mongoconn@latest
- Use a specific version (tag)
go get github.com/sivaosorg/mongoconn@v0.0.1
Explain how users can interact with the various modules.
To run tests for all modules, use the following command:
make test
To tidy up the project's Go modules, use the following command:
make tidy
To upgrade project dependencies, use the following command:
make deps-upgrade
To clean the Go module cache, use the following command:
make deps-clean-cache