# didi/gendry

a golang library for sql builder

Repository: https://github.com/didi/gendry
Canonical: https://ross.abutalabs.com/products/gendry
Language: Go
License: Apache-2.0
License Family: permissive
Archived: true
Last push: 2025-03-12T03:30:45+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 11, release rhythm 8, longevity 100
- inputs: {"age_days": 3197, "days_push": 539, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1635, forks 195 (observed 2026-08-28T04:05:14.555377+00:00)

## What it is
Gendry is a Go library for working with MySQL databases, built on go-sql-driver/mysql. It provides three composable parts—manager for building connection DSNs, builder for programmatically constructing SQL queries, and scanner for mapping query results into structs—without being a full ORM.

## Use cases
- build SQL queries programmatically in Go
- initialize MySQL connection pools with driver options
- scan database rows into Go structs
- generate WHERE IN clauses with large element sets
- avoid heavyweight ORMs while still avoiding hand-written SQL
- manage database/sql dataSourceName configuration

## When to choose
- you use MySQL with Go's database/sql and want safer, maintainable query construction
- you dislike ORMs but want help building SQL and scanning results
- you need fine control over driver parameters like charset, timeouts, and interpolateParams

## When to avoid
- you need a full ORM with migrations, relations, and model management
- you use a database other than MySQL
- you want schema-first code generation for complex object graphs

## Facets
- artifact type: library
- maturity: stable
- function: database-driver, orm
- domain: databases, backend, developer-tools
- platform: go, windows
- tags: sql-builder, mysql, query-builder, scanner, database/sql, linux, macos

## Member repositories
- didi/gendry (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:14.555377+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:47:00.286252+00:00, confidence not recorded.
  - readme: https://github.com/didi/gendry (fetched 2026-08-28T04:05:14.555377+00:00, sha a2f6691d8fd5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
