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
Forever Free Full-Stack Observability | Grafana Cloud Icon
Forever Free Full-Stack Observability | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
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