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
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
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