# aaberg/sql2o

sql2o is a small library, which makes it easy to convert the result of your sql-statements into objects. No resultset hacking required. Kind of like an orm, but without the sql-generation capabilities. Supports named parameters.

Repository: https://github.com/aaberg/sql2o
Canonical: https://ross.abutalabs.com/products/sql2o
Homepage: http://sql2o.org
Language: Java
License: MIT
License Family: permissive
Last push: 2026-08-26T15:09:56+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 87, longevity 100
- inputs: {"age_days": 5586, "days_push": 7, "days_rel": 7, "gap_med": 59, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1168, forks 226 (observed 2026-08-28T04:03:50.839148+00:00)

## What it is
Sql2o is a small Java library that maps JDBC query results directly into POJOs with named parameter support, acting like an ORM without SQL generation. It simplifies database interaction to a few lines of code while keeping full control over SQL.

## Use cases
- map sql query results to java objects
- execute jdbc queries without resultset boilerplate
- run parameterized sql with named parameters
- manage database transactions in java
- lightweight alternative to full orm frameworks

## When to choose
- you want to write your own sql but avoid resultset mapping boilerplate
- you need a lightweight database layer without orm overhead
- you prefer named parameters and simple transactions over jpa complexity

## When to avoid
- you need automatic sql generation, schema management, or lazy loading
- you want a full orm with entity relationships and caching
- you are not on the jvm or not using a jdbc-compliant database

## Facets
- artifact type: library
- maturity: active
- function: database, orm, database-driver
- domain: databases, backend, developer-tools
- platform: jvm, cross-platform
- tags: jdbc, pojo-mapping, sql, named-parameters, lightweight

## Member repositories
- aaberg/sql2o (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:50.839148+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-30T06:28:45.696170+00:00, confidence not recorded.
  - readme: https://github.com/aaberg/sql2o (fetched 2026-08-28T04:03:50.839148+00:00, sha 35f332a213a2)
  - homepage: http://sql2o.org (fetched 2026-08-29T12:34:41.252482+00:00, sha 14ddf3b29dda)
- Data as of 2026-08-30T08:39:29.467469+00:00.
