talira

Compare

MongoDB Ruby Drivermysql2pg
What it isMongoDB's official Ruby driverFast MySQL and MariaDB client library for Ruby, binding to libmysqlclientThe Ruby interface to PostgreSQL
KindOpen sourceOpen sourceOpen source
Trust0.560.470.61
Stars14242272872
Last commit2026-11-192026-10-212026-11-13
LicenceApache-2.0MITBSD-2-Clause OR Ruby
PricingFree and open sourceFree and open sourceFree and open source
Free tierYesYesYes
Self-hostable———
Ways to run it———
SOC 2———
HIPAA———
SSO———
API———
Plugins———
MCP server———
CompanyMongoDBBrian Lopezruby-pg maintainers
Features
  • officially supported by MongoDB
  • supports Ruby 2.7 to 3.3 and JRuby 9.3 to 9.4
  • GPG-signed releases
  • semantic versioning
  • Client, Result and Statement classes for connecting, querying and prepared statements
  • Links against libmysqlclient or MariaDB Connector/C
  • Results as arrays or hashes, with type casting or raw strings
  • Async queries, multiple result sets and row streaming
  • TLS with verification modes and certificate fingerprint pinning
  • Active Record's mysql2 adapter uses it
  • connect to PostgreSQL and run queries from Ruby
  • binary gems that bundle libpq
  • works with PostgreSQL 10 and later
Limitations
  • Only the most recent minor release of the driver is officially supported.
  • A client's connection can't be shared across fork(): call discard! in the child and open new connections