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
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
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