# jeremyevans/sequel

Sequel: The Database Toolkit for Ruby

Repository: https://github.com/jeremyevans/sequel
Canonical: https://ross.abutalabs.com/products/sequel
Homepage: http://sequel.jeremyevans.net
Language: Ruby
License: MIT
License Family: permissive
Last push: 2026-08-25T23:31:42+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 35, longevity 100
- inputs: {"age_days": 6729, "days_push": 8, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_readme
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5091, forks 1073 (observed 2026-08-28T04:09:09.643552+00:00)

## What it is
Sequel is a Ruby database toolkit providing a concise DSL for SQL query construction, schema management, and a comprehensive ORM layer for mapping records to Ruby objects. It supports many databases including PostgreSQL, MySQL, SQLite, and Oracle, with advanced features like prepared statements, sharding, and primary/replica configurations.

## Use cases
- query a SQL database from Ruby without raw SQL strings
- map database rows to Ruby objects with an ORM
- run database migrations and schema changes
- set up primary/replica database configurations or sharding
- use prepared statements and bound variables in Ruby
- connect to PostgreSQL, MySQL, or SQLite from a Ruby app

## When to choose
- you want a lightweight, fast Ruby ORM alternative to ActiveRecord
- you need fine-grained SQL query construction with a Ruby DSL
- you need advanced database features like savepoints, two-phase commit, or sharding
- you want a toolkit that works both as a query builder and a full ORM

## When to avoid
- you are not working in Ruby
- you need a NoSQL or document database mapper
- your team already standardizes on ActiveRecord and its ecosystem

## Facets
- artifact type: library
- maturity: stable
- function: orm, database, database-driver
- domain: databases, web-development, backend, developer-tools
- platform: ruby, cross-platform
- tags: sql, query-builder, migrations, connection-pooling, postgresql, mysql, sqlite, activerecord-alternative, migration

## Member repositories
- jeremyevans/sequel (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:09.643552+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:02:32.228089+00:00, confidence not recorded.
  - homepage: http://sequel.jeremyevans.net (fetched 2026-08-29T08:57:17.141171+00:00, sha 8b4d16acfe3c)
  - site_page: http://sequel.jeremyevans.net/documentation.html (fetched 2026-08-29T08:57:17.150007+00:00, sha a1b7f2e99a98)
- Data as of 2026-08-30T08:39:29.467469+00:00.
