brianmario/mysql2
A modern, simple and very fast Mysql library for Ruby - binding to libmysql observed · 2026-08-28
Health v2 · maintenance only
70/100
- Activity 98
- Release rhythm 16
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5999
- days_rel: 345
- days_push: 12
- n_releases_24m: 1
Adoption not part of the score
2278 stars · 560 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A fast, simple MySQL client library for Ruby that binds to libmysqlclient (or MariaDB alternatives). It provides Client, Result, and Statement classes for connecting, querying, and iterating over results with encoding-aware UTF-8 support.
Use cases
- connect to MySQL from Ruby
- run SQL queries and iterate over results in Ruby
- use prepared statements with MySQL in Ruby
- connect to MariaDB from a Ruby app
- fast MySQL driver for Rails apps
When to choose
- you need a fast, low-level MySQL/MariaDB driver in Ruby
- you want a simple API for connect-query-iterate without a complex C API mapping
- you need encoding-aware UTF-8 connections
When to avoid
- you need an ORM or query builder rather than a raw driver
- you use a different database like PostgreSQL
- you need a pure-Ruby driver without native libmysqlclient dependencies
Facets
library · maturity stable
database-driver database databases backend web-development ruby windows mysql libmysql mariadb gem prepared-statements linux macos
2 sources
- readme: https://github.com/brianmario/mysql2 · fetched 2026-08-28 · 04e31d701df4
- homepage: http://github.com/brianmario/mysql2 · fetched 2026-08-29 · 26060bc593b5
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| brianmario/mysql2 | main | 70 |
For agents
markdown · JSON · MCP: product_card(name="brianmario/mysql2")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem