# jmoiron/sqlx

general purpose extensions to golang's database/sql

Repository: https://github.com/jmoiron/sqlx
Canonical: https://ross.abutalabs.com/products/sqlx
Homepage: http://jmoiron.github.io/sqlx/
Language: Go
License: MIT
License Family: permissive
Last push: 2024-08-15T16:19:19+00:00

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

## Adoption (not part of the score)
Stars 17724, forks 1116 (observed 2026-08-28T04:11:20.228548+00:00)

## What it is
sqlx is a Go library providing general-purpose extensions to the standard database/sql package. It adds struct/map scanning, named parameters, and convenience helpers like Get and Select while remaining a superset of the standard interfaces.

## Use cases
- scan sql rows into go structs
- run queries with named parameters in go
- quickly map query results to slices of structs
- extend database/sql without rewriting existing code
- do batch insertions with sqlx.In
- wrap database/sql handles with drop-in replacements

## When to choose
- you use database/sql and want struct scanning and named params without a full ORM
- you need drop-in compatibility with existing database/sql code
- you want a lightweight, well-established SQL helper library for Go

## When to avoid
- you want a full ORM with migrations, associations, and query building
- you need automatic handling of ambiguous join column names
- you prefer code-generation-based database access layers

## Facets
- artifact type: library
- maturity: stable
- function: database, orm, serialization
- domain: databases, backend, developer-tools
- platform: go, cross-platform
- tags: database-sql, sql, struct-scanning, named-parameters, go

## Member repositories
- jmoiron/sqlx (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:20.228548+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-29T17:02:28.810089+00:00, confidence not recorded.
  - readme: https://github.com/jmoiron/sqlx (fetched 2026-08-28T04:11:20.228548+00:00, sha bbd062afd891)
  - homepage: http://jmoiron.github.io/sqlx/ (fetched 2026-08-29T08:00:36.062111+00:00, sha eb089a358e38)
- Data as of 2026-08-30T08:39:29.467469+00:00.
