The MongoDB supported driver for Go. The recommended way to get started using the MongoDB Go driver is by using go modules to install the dependency in your project. This can be done either by importing packages from go.mongodb.org/mongo-driver and having the build step install the dependency. When using a version of Go that does not support modules, the driver can be installed using dep. To get started with the driver, import the mongo package and create a mongo.Client with the Connect function. For more advanced configuration and authentication, see the documentation for mongo. To insert a document into a collection, first retrieve a Database and then Collection instance from the Client. The Collection instance can then be used to insert documents. The driver tests can be run against several database configurations. The most simple configuration is a standalone mongod with no auth, no ssl, and no compression.

Features

  • Require Go 1.10 or higher
  • Needs MongoDB 2.6 and higher
  • Run basic driver tests
  • Test a replica set or sharded cluster
  • Test authentication and TLS
  • The MongoDB Go Driver supports wire protocol compression

Project Samples

Project Activity

See All Activity >

Categories

Hardware Drivers

License

Apache License V2.0

Follow MongoDB Go Driver

MongoDB Go Driver Web Site

Other Useful Business Software
$300 Free Credits for Your Google Cloud Projects Icon
$300 Free Credits for Your Google Cloud Projects

Start building on Google Cloud with $300 in free credits. No commitment, no credit card required until you're ready to scale.

Launch your next project with $300 in free Google Cloud credits—no strings attached. Test, build, and deploy without risk. Use your credits across the entire Google Cloud platform to find what works best for your needs. After your credits are used, continue with always-free tier services. Only pay when you're ready to scale. Sign up in minutes and start exploring.
Start Free Trial
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of MongoDB Go Driver!

Additional Project Details

Operating Systems

Windows

Programming Language

Go

Related Categories

Go Hardware Drivers

Registered

2021-09-20