# gocraft/dbr

Additions to Go's database/sql for super fast performance and convenience.

Repository: https://github.com/gocraft/dbr
Canonical: https://ross.abutalabs.com/products/dbr
Language: Go
License: MIT
License Family: permissive
Last push: 2024-10-04T21:24:44+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": 4502, "days_push": 698, "days_rel": 698, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1848, forks 201 (observed 2026-08-28T04:05:43.628105+00:00)

## What it is
gocraft/dbr is a Go library that extends database/sql with a fast query builder and convenience features like struct loading, IN-clause interpolation, and transaction helpers. It supports MySQL, PostgreSQL, SQLite3, and MsSQL.

## Use cases
- build sql queries in go without a full orm
- load query results into go structs
- interpolate in clause values in go sql queries
- manage transactions in go database code
- migrate legacy snake_case columns to camelcase go structs

## When to choose
- you want a lightweight query builder over database/sql rather than a full orm
- you need fast performance with manual control over sql
- you use mysql, postgres, sqlite, or mssql in go

## When to avoid
- you want a full orm with migrations and associations
- you need database support beyond mysql, postgres, sqlite, or mssql
- you prefer writing raw sql directly

## Facets
- artifact type: library
- maturity: maintenance
- function: database-driver, orm, database
- domain: databases, backend, developer-tools
- platform: go, windows
- tags: query-builder, database-sql, sql, struct-mapping, mysql, postgresql, sqlite, linux, macos

## Member repositories
- gocraft/dbr (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:43.628105+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-30T03:17:48.170258+00:00, confidence not recorded.
  - readme: https://github.com/gocraft/dbr (fetched 2026-08-28T04:05:43.628105+00:00, sha 6c7ba7d3cfbb)
- Data as of 2026-08-30T08:39:29.467469+00:00.
