talira

MongoDB Ruby Driver

MongoDB's official Ruby driver

open sourceApache-2.0free

The MongoDB Ruby Driver is MongoDB's officially supported driver for connecting Ruby applications to MongoDB and querying and changing its data. It supports Ruby 2.7 to 3.3 and JRuby 9.3 to 9.4, follows semantic versioning, and signs each release after 2.20.0 with the team's GPG key so you can verify the gem. Install it from RubyGems as mongo.

Problems it solves

  • connect my Ruby app to a MongoDB database
  • query and update MongoDB documents from Ruby
  • use MongoDB from a JRuby application

Features

  • officially supported by MongoDB
  • supports Ruby 2.7 to 3.3 and JRuby 9.3 to 9.4
  • GPG-signed releases
  • semantic versioning

Limitations

  • Only the most recent minor release of the driver is officially supported.1

Alternatives

The same job

These do what MongoDB Ruby Driver does.

  1. mysql2 Fast MySQL and MariaDB client library for Ruby, binding to libmysqlclient
  2. pg The Ruby interface to PostgreSQL

Compare MongoDB Ruby Driver with the top 3