| What it is | Fast MySQL and MariaDB client library for Ruby, binding to libmysqlclient | The Ruby interface to PostgreSQL | MongoDB's official Ruby driver | Ruby bindings for the SQLite3 embedded database |
| Features | - 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
| - officially supported by MongoDB
- supports Ruby 2.7 to 3.3 and JRuby 9.3 to 9.4
- GPG-signed releases
- semantic versioning
| - Database, Statement and ResultSet APIs
- bound parameters
- precompiled native gems with SQLite bundled
- builds against system SQLite or drop-in replacements
- loads SQLite extensions
|